From 26e0c6fb69841be8c387746fb31559801b30a7b9 Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Wed, 24 Mar 2021 17:12:30 +0800 Subject: [PATCH] skip test sqlserver due to it will raise data race for invalid sql --- tests/query_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/query_test.go b/tests/query_test.go index 489ac807..34999337 100644 --- a/tests/query_test.go +++ b/tests/query_test.go @@ -293,6 +293,10 @@ func TestFindInBatches(t *testing.T) { } func TestFindInBatchesWithError(t *testing.T) { + if name := DB.Dialector.Name(); name == "sqlserver" { + t.Skip("skip sqlserver due to it will raise data race for invalid sql") + } + var users = []User{ *GetUser("find_in_batches_with_error", Config{}), *GetUser("find_in_batches_with_error", Config{}),