From c0089ec8289a73fd5ae8f8eeb06fde74c19a858b Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 22 Sep 2019 20:36:32 +0800 Subject: [PATCH] fix tests --- dialect_postgres_test.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dialect_postgres_test.go b/dialect_postgres_test.go index ebc079e1..f2afdefc 100644 --- a/dialect_postgres_test.go +++ b/dialect_postgres_test.go @@ -4,9 +4,8 @@ import ( "reflect" "testing" - "xorm.io/core" - "github.com/jackc/pgx/stdlib" "github.com/stretchr/testify/assert" + "xorm.io/core" ) func TestParsePostgres(t *testing.T) { @@ -72,10 +71,7 @@ func TestParsePgx(t *testing.T) { } // Register DriverConfig - drvierConfig := stdlib.DriverConfig{} - stdlib.RegisterDriverConfig(&drvierConfig) - uri, err = driver.Parse("pgx", - drvierConfig.ConnectionString(test.in)) + uri, err = driver.Parse("pgx", test.in) if err != nil && test.valid { t.Errorf("%q got unexpected error: %s", test.in, err) } else if err == nil && !reflect.DeepEqual(test.expected, uri.DbName) { -- 2.40.1