Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jiyfhust committed Jan 2, 2024
1 parent 432625c commit 5697500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/session/test/variable/variable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ func TestCoprocessorOOMAction(t *testing.T) {
tk.MustExec("set tidb_distsql_scan_concurrency = 1")
tk.MustExec("set @@tidb_mem_quota_query=1;")
tk.MustExec("SET GLOBAL tidb_mem_oom_action='CANCEL'")
defer tk.MustExec("SET GLOBAL tidb_mem_oom_action = DEFAULT")
err = tk.QueryToErr(testcase.sql)
require.Error(t, err)
require.True(t, exeerrors.ErrMemoryExceedForQuery.Equal(err))
tk.MustExec("SET GLOBAL tidb_mem_oom_action = DEFAULT")
se.Close()
}
}
Expand Down

0 comments on commit 5697500

Please sign in to comment.