aboutsummaryrefslogtreecommitdiff
path: root/rescached_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'rescached_test.go')
-rw-r--r--rescached_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/rescached_test.go b/rescached_test.go
index d312c2a..0e51afa 100644
--- a/rescached_test.go
+++ b/rescached_test.go
@@ -46,8 +46,6 @@ func TestMain(m *testing.M) {
log.Fatal(err)
}
- defer testServer.Stop()
-
resc = NewClient("http://"+testEnv.WUIListen, false)
// Loop 10 times until server ready for testing.
@@ -61,7 +59,7 @@ func TestMain(m *testing.M) {
}
testStatus = m.Run()
-
+ testServer.Stop()
os.Exit(testStatus)
}
@@ -103,6 +101,6 @@ func mockBlockdServer() {
err = mockServer.Start()
if err != nil {
- log.Fatal(err)
+ log.Println(err)
}
}