diff options
author | Valery Piashchynski <[email protected]> | 2020-02-28 10:10:37 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-02-28 10:10:37 +0300 |
commit | 07493d20c66fe883349828602eceb33efa12aa9c (patch) | |
tree | 2abda06f97b541fa3e0fea13274304cb3e84beb0 | |
parent | c664a752e17d148db31e05317dd8f4cdb069281c (diff) |
Fix linter errors
-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") } }() |