fix tests

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

View File

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