Fix tests better errors and cleanup, remove panics

This commit is contained in:
James
2017-08-18 12:36:18 -07:00
parent 17dc103d84
commit 461959cc29
4 changed files with 123 additions and 72 deletions

View File

@@ -8,6 +8,7 @@ import (
func TestMain(m *testing.M) {
// call flag.Parse() here if TestMain uses flags
s := SetupDefaultSuite()
defer Cleanup()
defer s.Cancel()
os.Exit(m.Run())
}