From b5b720e5d74fe2f839de00a76ba39e9f1085add5 Mon Sep 17 00:00:00 2001 From: crazycs520 Date: Wed, 18 Oct 2023 16:16:47 +0800 Subject: [PATCH] fix test Signed-off-by: crazycs520 --- tests/realtikvtest/sessiontest/session_fail_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/realtikvtest/sessiontest/session_fail_test.go b/tests/realtikvtest/sessiontest/session_fail_test.go index e6a6cff30e208..61ff4c2034182 100644 --- a/tests/realtikvtest/sessiontest/session_fail_test.go +++ b/tests/realtikvtest/sessiontest/session_fail_test.go @@ -357,6 +357,7 @@ func TestBatchClientDataRace(t *testing.T) { rs, _ := tk.ExecWithContext(ctx, sqls[j%len(sqls)]) if rs != nil { session.ResultSetToStringSlice(ctx, tk.Session(), rs) + rs.Close() } } }()