diff options
author | Valery Piashchynski <[email protected]> | 2021-02-16 00:04:05 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-02-16 00:04:05 +0300 |
commit | 87b3130a95e2ff2904e7910f9bc87bc3020dbe27 (patch) | |
tree | cc08fda6ccdc56ec26b0ef39f2fa80d6b950086a /pkg | |
parent | f8dd689d3b7c9f953d21775110f7d3182768cfba (diff) |
Add support for flag overwriting
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/pool/supervisor_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/pool/supervisor_test.go b/pkg/pool/supervisor_test.go index cbe9f5cb..85af4672 100644 --- a/pkg/pool/supervisor_test.go +++ b/pkg/pool/supervisor_test.go @@ -53,7 +53,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 { - assert.Fail(t, "max memory reached") + assert.Fail(t, "max memory reached, worker still alive") } } } @@ -61,7 +61,7 @@ func TestSupervisedPool_Exec(t *testing.T) { }() for i := 0; i < 100; i++ { - time.Sleep(time.Millisecond * 50) + time.Sleep(time.Millisecond * 100) _, err = p.Exec(payload.Payload{ Context: []byte(""), Body: []byte("foo"), |