Merge pull request #727 from KeyboardNerd/master

pgsql: Fix pgsql test
This commit is contained in:
Sida Chen 2019-03-06 13:44:47 -05:00 committed by GitHub
commit 58f014c297
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,10 +117,11 @@ func TestMain(m *testing.M) {
withFixtureName = fName withFixtureName = fName
withoutFixtureName = nfName withoutFixtureName = nfName
m.Run() rc := m.Run()
dropTemplateDatabase(fURL, fName) dropTemplateDatabase(fURL, fName)
dropTemplateDatabase(nfURL, nfName) dropTemplateDatabase(nfURL, nfName)
os.Exit(rc)
} }
func openCopiedDatabase(testConfig database.RegistrableComponentConfig, fixture bool) (database.Datastore, error) { func openCopiedDatabase(testConfig database.RegistrableComponentConfig, fixture bool) (database.Datastore, error) {