Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

Commit d4419ac

Browse files
authored
fix tests (#1429)
1 parent 57a7e44 commit d4419ac

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

dialect_postgres_test.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ import (
44
"reflect"
55
"testing"
66

7-
"xorm.io/core"
8-
"github.com/jackc/pgx/stdlib"
97
"github.com/stretchr/testify/assert"
8+
"xorm.io/core"
109
)
1110

1211
func TestParsePostgres(t *testing.T) {
@@ -72,10 +71,7 @@ func TestParsePgx(t *testing.T) {
7271
}
7372

7473
// Register DriverConfig
75-
drvierConfig := stdlib.DriverConfig{}
76-
stdlib.RegisterDriverConfig(&drvierConfig)
77-
uri, err = driver.Parse("pgx",
78-
drvierConfig.ConnectionString(test.in))
74+
uri, err = driver.Parse("pgx", test.in)
7975
if err != nil && test.valid {
8076
t.Errorf("%q got unexpected error: %s", test.in, err)
8177
} else if err == nil && !reflect.DeepEqual(test.expected, uri.DbName) {

0 commit comments

Comments
 (0)