Skip to content

Commit de0990d

Browse files
committed
syz-cluster: use test context in NewTransientDB
This is a better choice than context.Background().
1 parent 0279723 commit de0990d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syz-cluster/pkg/db/spanner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ func NewTransientDB(t *testing.T) (*spanner.Client, context.Context) {
153153
if err != nil {
154154
t.Fatal(err)
155155
}
156-
ctx := context.Background()
156+
ctx := t.Context()
157157
err = CreateSpannerInstance(ctx, uri)
158158
if err != nil {
159159
t.Fatal(err)

0 commit comments

Comments
 (0)