diff options
author | Valery Piashchynski <[email protected]> | 2020-10-27 16:06:39 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-10-27 16:06:39 +0300 |
commit | 27392d90f3b208adc5215ce876698650a4188463 (patch) | |
tree | db4c7e348c6b03c478a907cf89c8baaf68195d73 /supervisor_test.go | |
parent | ac5a89d63dbed7e0318c7e70ec1b0fa9c98c198a (diff) |
Fix linter warnings
Diffstat (limited to 'supervisor_test.go')
-rw-r--r-- | supervisor_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/supervisor_test.go b/supervisor_test.go index b6aa8372..34172d7d 100644 --- a/supervisor_test.go +++ b/supervisor_test.go @@ -37,7 +37,7 @@ func TestSupervisedPool_Exec(t *testing.T) { defer p.Destroy(context.Background()) go func() { - for ; ; { + for { select { case <-stopCh: return @@ -49,7 +49,7 @@ func TestSupervisedPool_Exec(t *testing.T) { assert.NotNil(t, s) // since this is soft limit, double max memory limit watch if (s.MemoryUsage / MB) > cfgSupervised.Supervisor.MaxWorkerMemory*2 { - t.Fatal("max memory reached") + assert.Fail(t, "max memory reached") } } } |