skip test sqlserver due to it will raise data race for invalid sql

This commit is contained in:
Jinzhu 2021-03-24 17:12:30 +08:00
parent 88078e48d0
commit 26e0c6fb69
1 changed files with 4 additions and 0 deletions

View File

@ -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{}),