Skip to content

Commit 19971d1

Browse files
committed
test: outline race condition
1 parent 2f42145 commit 19971d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/replicas/putter_soc_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ func TestSocPutter(t *testing.T) {
150150
atomic.StoreInt32(i, 0)
151151
tbp.putErrors = func(ctx context.Context, _ swarm.Address) error {
152152
j := atomic.AddInt32(i, 1)
153+
<-time.After(10 * time.Millisecond)
153154
if j == 6 {
154155
return errTestA
155156
}

0 commit comments

Comments
 (0)