Skip to content

Commit e49ee72

Browse files
committed
test: sleep more
1 parent f342034 commit e49ee72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/globallock/locker_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func TestLocker(t *testing.T) {
3232
// Avoid data race.
3333
// The startExtend goroutine may still be running and reading redisLockExpiry.
3434
// Wait for a while since it will be stopped soon after Close is called.
35-
time.Sleep(time.Second)
35+
time.Sleep(5 * time.Second)
3636

3737
redisLockExpiry = oldExpiry
3838
}()

0 commit comments

Comments
 (0)