From 8d9622cfd094afca3d2f7163558289d0a117a6a2 Mon Sep 17 00:00:00 2001 From: Umputun Date: Thu, 16 Aug 2018 18:48:34 -0500 Subject: [PATCH] shutdown after import test --- backend/app/rest/api/migrator_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/rest/api/migrator_test.go b/backend/app/rest/api/migrator_test.go index 352ac3bb..36b5d5eb 100644 --- a/backend/app/rest/api/migrator_test.go +++ b/backend/app/rest/api/migrator_test.go @@ -155,14 +155,14 @@ func prepImportSrv(t *testing.T) (svc *Migrator, ds *service.DataStore, ts *http Cache: &cache.Nop{}, KeyStore: keys.NewStaticStore("123456"), } - routes := svc.routes() ts = httptest.NewServer(routes) return svc, dataStore, ts } -func cleanupImportSrv(_ *Migrator, ts *httptest.Server) { +func cleanupImportSrv(m *Migrator, ts *httptest.Server) { ts.Close() + m.Shutdown() os.Remove(testDb) }