summaryrefslogtreecommitdiff
path: root/static_pool_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'static_pool_test.go')
-rw-r--r--static_pool_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/static_pool_test.go b/static_pool_test.go
index fd8124ac..e986a9bf 100644
--- a/static_pool_test.go
+++ b/static_pool_test.go
@@ -8,6 +8,7 @@ import (
"runtime"
"strconv"
"sync"
+ "sync/atomic"
"testing"
"time"
@@ -173,6 +174,8 @@ func Test_StaticPool_Broken_Replace(t *testing.T) {
wg := &sync.WaitGroup{}
wg.Add(1)
+ var i int64
+ atomic.StoreInt64(&i, 10)
go func() {
for {