From b58c5a61fe6a9c1f6bb567eb52b380ad00c8f93f Mon Sep 17 00:00:00 2001 From: Tushar Verma Date: Wed, 29 Jul 2026 07:26:29 +0530 Subject: [PATCH] storage/lockfile: shorten the sleeps in TestLockfileMixedConcurrent Signed-off-by: Tushar Verma --- storage/pkg/lockfile/lockfile_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/pkg/lockfile/lockfile_test.go b/storage/pkg/lockfile/lockfile_test.go index f2a25ea1ea..57e88eded4 100644 --- a/storage/pkg/lockfile/lockfile_test.go +++ b/storage/pkg/lockfile/lockfile_test.go @@ -516,7 +516,7 @@ func TestLockfileMixedConcurrent(t *testing.T) { l.Lock() tmp := atomic.AddInt32(c, diff) assert.True(t, tmp == diff, "counter should be %d but instead is %d", diff, tmp) - time.Sleep(100 * time.Millisecond) + time.Sleep(1 * time.Millisecond) atomic.AddInt32(c, diff*(-1)) l.Unlock() } @@ -530,7 +530,7 @@ func TestLockfileMixedConcurrent(t *testing.T) { l.RLock() tmp := atomic.AddInt32(c, 1) assert.True(t, tmp >= 1 && tmp < diff) - time.Sleep(100 * time.Millisecond) + time.Sleep(1 * time.Millisecond) atomic.AddInt32(c, -1) l.Unlock() }