From 4f189a7eaecf9bfac4967a2d83efc4b58cc77155 Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Sun, 25 May 2025 09:46:35 +0800 Subject: [PATCH] fix test --- tests/compose.yml | 2 +- tests/generics_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/compose.yml b/tests/compose.yml index 66f2daee..f43fe82a 100644 --- a/tests/compose.yml +++ b/tests/compose.yml @@ -18,7 +18,7 @@ services: - POSTGRES_USER=gorm - POSTGRES_PASSWORD=gorm mssql: - image: '${MSSQL_IMAGE}:2022-latest' + image: '${MSSQL_IMAGE}:latest' ports: - "127.0.0.1:9930:1433" environment: diff --git a/tests/generics_test.go b/tests/generics_test.go index 39decb3f..9a7c9ddd 100644 --- a/tests/generics_test.go +++ b/tests/generics_test.go @@ -846,7 +846,7 @@ func TestGenericsToSQL(t *testing.T) { return tx }) - if !regexp.MustCompile("SELECT \\* FROM `users`.* 10").MatchString(sql) { + if !regexp.MustCompile("SELECT \\* FROM .users..* 10").MatchString(sql) { t.Errorf("ToSQL: got wrong sql with Generics API %v", sql) } }