Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancaiamao committed Dec 1, 2022
1 parent a4a06ab commit 1c5388a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions executor/autoidtest/autoid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -759,11 +759,11 @@ func TestIssue39528(t *testing.T) {
tk.MustExec("insert into issue39528 values ()")
tk.MustExec("insert into issue39528 values ()")

// Make sure the code does not visit tikv on allocate path.
ctx := context.Background()
var codeRun bool
ctx = context.WithValue(ctx, "testIssue39528", &codeRun)
_, err := tk.ExecWithContext(ctx, "insert into issue39528 values ()")
require.NoError(t, err)
require.True(t, codeRun)
// Make sure the code does not visit tikv on allocate path.
require.False(t, codeRun)
}

0 comments on commit 1c5388a

Please sign in to comment.