summaryrefslogtreecommitdiff
path: root/static_pool_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-12-01 16:31:31 +0300
committerValery Piashchynski <[email protected]>2020-12-01 16:31:31 +0300
commit394e7cb4a0e31549f9bf078adb99154abfaa8321 (patch)
treea6cf87ac25c299b9be8a9dfc2ffae22effb1f559 /static_pool_test.go
parentbc7d58798055db54aa71a3f9ade7ae18a30e017a (diff)
Test_StaticPool_Broken_Replace update
Diffstat (limited to 'static_pool_test.go')
-rwxr-xr-xstatic_pool_test.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/static_pool_test.go b/static_pool_test.go
index 9eb5de15..91721db5 100755
--- a/static_pool_test.go
+++ b/static_pool_test.go
@@ -6,6 +6,7 @@ import (
"os/exec"
"runtime"
"strconv"
+ "strings"
"sync"
"testing"
"time"
@@ -177,9 +178,11 @@ func Test_StaticPool_Broken_Replace(t *testing.T) {
p.AddListener(func(event interface{}) {
if wev, ok := event.(WorkerEvent); ok {
if wev.Event == EventWorkerLog {
- assert.Contains(t, string(wev.Payload.([]byte)), "undefined_function()")
- wg.Done()
- return
+ e := string(wev.Payload.([]byte))
+ if strings.ContainsAny(e, "undefined_function()") {
+ wg.Done()
+ return
+ }
}
}
})