summaryrefslogtreecommitdiff
path: root/pkg/pool
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-02-03 17:31:17 +0300
committerValery Piashchynski <[email protected]>2021-02-03 17:31:17 +0300
commit8eda5dc6f0f7e05d7b3d62e1861af05b49a2574a (patch)
treefae66ad49d2a4624a7caf45a5bf07d53e5c7d26f /pkg/pool
parent20a1a5d2eb26090e0eef0e6772330ee2a52526fa (diff)
Fix memory leak in the Worker.go
Diffstat (limited to 'pkg/pool')
-rwxr-xr-xpkg/pool/static_pool_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/pool/static_pool_test.go b/pkg/pool/static_pool_test.go
index 2d2b2b7d..a8fe3baa 100755
--- a/pkg/pool/static_pool_test.go
+++ b/pkg/pool/static_pool_test.go
@@ -171,7 +171,7 @@ func Test_StaticPool_Broken_Replace(t *testing.T) {
listener := func(event interface{}) {
if wev, ok := event.(events.WorkerEvent); ok {
- if wev.Event == events.EventWorkerLog {
+ if wev.Event == events.EventWorkerStderr {
e := string(wev.Payload.([]byte))
if strings.ContainsAny(e, "undefined_function()") {
block <- struct{}{}