Skip to content

Commit

Permalink
session: fix data race in TestBootstrap (#39718)
Browse files Browse the repository at this point in the history
close #39682
  • Loading branch information
wshwsh12 committed Dec 7, 2022
1 parent 05d4256 commit 770e75b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions session/bootstrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ func TestBootstrap(t *testing.T) {
err = r.Next(ctx, req)
require.NoError(t, err)
require.Equal(t, globalVarsCount(), req.GetRow(0).GetInt64(0))
require.NoError(t, r.Close())

// Check a storage operations are default autocommit after the second start.
mustExec(t, se, "USE test")
Expand Down

0 comments on commit 770e75b

Please sign in to comment.