Skip to content

spanner: defers are executed at the end of func #10323

@egonelbre

Description

@egonelbre

Tracking issue for #9759

Related #9784

Currently there are quite a few tests that have a code along the lines of:

for _, test := range testcases {
    client := NewClient(...)
    defer client.Close()

This closing will happen at the end of the function, not at the end of the for loop.

Metadata

Metadata

Assignees

Labels

api: spannerIssues related to the Spanner API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions