fix tests

This commit is contained in:
Lunny Xiao 2019-02-01 11:45:02 +08:00
parent 7772aa4702
commit 0ae5909800
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ func createEngine(dbType, connStr string) error {
db.Close() db.Close()
*ignoreSelectUpdate = true *ignoreSelectUpdate = true
case core.POSTGRES: case core.POSTGRES:
db, err := sql.Open(dbType, connStr) db, err := sql.Open(dbType, strings.Replace(connStr, "xorm_test", "postgres", -1))
if err != nil { if err != nil {
return err return err
} }