From 8890479bd2f80eb6cbe6be0e939d01217597f38c Mon Sep 17 00:00:00 2001 From: Azat Kalmykov Date: Fri, 3 Apr 2020 08:53:06 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20=D1=83=D0=B1=D1=80=D0=B0=D0=BB=20=D0=B1?= =?UTF-8?q?=D0=B0=D0=B3=20=D1=81=20=D0=BD=D1=83=D0=BB=D0=B5=D0=B2=D1=8B?= =?UTF-8?q?=D0=BC=20=D0=B2=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=B5=D0=BC=20Sle?= =?UTF-8?q?ep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- batcher/batcher_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/batcher/batcher_test.go b/batcher/batcher_test.go index 15ca7d3..b1bbcf7 100644 --- a/batcher/batcher_test.go +++ b/batcher/batcher_test.go @@ -49,7 +49,7 @@ func TestStaleRead(t *testing.T) { go func(i int) { defer wg.Done() - time.Sleep(time.Millisecond * time.Duration(i/N)) + time.Sleep(time.Duration(i) * time.Millisecond / time.Duration(N)) for j := 0; j < K; j++ { counterValue := atomic.LoadInt32(&counter) batcherValue := b.Load().(int32)