pgsql: Fix pgsql test

This commit is contained in:
Sida Chen 2019-03-06 11:32:25 -05:00
parent f6759b2a15
commit ed9c6baf4f

View File

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