diff options
author | Wolfy-J <[email protected]> | 2018-01-28 01:55:28 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2018-01-28 01:55:28 +0300 |
commit | 770aabbd24fce5dbbad5060d38e97e821b9a9d50 (patch) | |
tree | 66770735ed153493e7b1bec4b9b69396019ae493 /pool_test.go | |
parent | a5e94cf216e0887ec2a9d95ddf3d5b60d5985ddb (diff) |
Update pool_test.go
Diffstat (limited to 'pool_test.go')
-rw-r--r-- | pool_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pool_test.go b/pool_test.go index 88926a9b..2706d0c3 100644 --- a/pool_test.go +++ b/pool_test.go @@ -8,6 +8,7 @@ import ( "sync" "testing" "time" + "log" ) var cfg = Config{ @@ -144,6 +145,7 @@ func Benchmark_Pool_Allocate(b *testing.B) { w, err := p.allocateWorker() if err != nil { b.Fail() + log.Println(err) } p.free <- w @@ -180,6 +182,7 @@ func Benchmark_Pool_Echo_Batched(b *testing.B) { defer wg.Done() if _, err := p.Exec(&Payload{Body: []byte("hello")}); err != nil { b.Fail() + log.Println(err) } }() } @@ -203,6 +206,7 @@ func Benchmark_Pool_Echo_Replaced(b *testing.B) { for n := 0; n < b.N; n++ { if _, err := p.Exec(&Payload{Body: []byte("hello")}); err != nil { b.Fail() + log.Println(err) } } } |