diff options
-rw-r--r-- | service/reload/watcher_test.go | 3 | ||||
-rw-r--r-- | socket_factory_test.go | 1 | ||||
-rw-r--r-- | static_pool_test.go | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/service/reload/watcher_test.go b/service/reload/watcher_test.go index f5a5db01..391f6bb9 100644 --- a/service/reload/watcher_test.go +++ b/service/reload/watcher_test.go @@ -129,7 +129,6 @@ func Test_Get_FileEvent(t *testing.T) { panic("didn't handle event when write file2") } w.Stop() - return } }() }() @@ -224,7 +223,7 @@ func Test_FileExtensionFilter(t *testing.T) { } }() w.Stop() - return + runtime.Goexit() }() err = w.StartPolling(time.Second) diff --git a/socket_factory_test.go b/socket_factory_test.go index 0d721959..c15e720a 100644 --- a/socket_factory_test.go +++ b/socket_factory_test.go @@ -202,7 +202,6 @@ func Test_Tcp_Broken(t *testing.T) { assert.Error(t, err) assert.Nil(t, res) - return } func Test_Tcp_Echo(t *testing.T) { diff --git a/static_pool_test.go b/static_pool_test.go index 793ef071..3fd8dc78 100644 --- a/static_pool_test.go +++ b/static_pool_test.go @@ -233,7 +233,7 @@ func Test_StaticPool_AllocateTimeout(t *testing.T) { assert.NoError(t, err) close(done) } else { - t.Fatal("Pool is nil") + panic("Pool is nil") } }() |