This commit is contained in:
Lunny Xiao 2021-07-11 19:27:37 +08:00
parent 3460c0fd04
commit 0e2b646390
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 5 additions and 1 deletions

View File

@ -180,8 +180,12 @@ func TestDumpTables(t *testing.T) {
importPath := fmt.Sprintf("dump_%v-table.sql", testEngine.Dialect().URI().DBType) importPath := fmt.Sprintf("dump_%v-table.sql", testEngine.Dialect().URI().DBType)
t.Run("import_"+importPath, func(t *testing.T) { t.Run("import_"+importPath, func(t *testing.T) {
_, err = testEngine.ImportFile(importPath) sess := testEngine.NewSession()
defer sess.Close()
assert.NoError(t, sess.Begin())
_, err = sess.ImportFile(importPath)
assert.NoError(t, err) assert.NoError(t, err)
assert.NoError(t, sess.Commit())
}) })
} }