Fix sqlite test (#1887)

Fix bug

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1887
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
Lunny Xiao 2021-04-08 21:26:21 +08:00
parent 2142e31d95
commit ee78664413
1 changed files with 4 additions and 0 deletions

View File

@ -189,6 +189,10 @@ func TestSetSchema(t *testing.T) {
}
func TestImport(t *testing.T) {
if testEngine.Dialect().URI().DBType != schemas.MYSQL {
t.SkipNow()
return
}
sess := testEngine.NewSession()
defer sess.Close()
assert.NoError(t, sess.Begin())