Skip to content

Commit 888d74d

Browse files
better0fdeadoleg-jukovec
authored andcommitted
test: fix TestTtlQueue
Changed sleep duration time in test. The reason is that ttl time is set to 5 seconds in test. And it doesn't have time for some reason in the case of a test in the same time. So set the sleep duration to 10 seconds. Part of #157
1 parent 8c35168 commit 888d74d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

queue/queue_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ func TestTtlQueue(t *testing.T) {
687687
}
688688
}
689689

690-
time.Sleep(5 * time.Second)
690+
time.Sleep(10 * time.Second)
691691

692692
//Take
693693
task, err = q.TakeTimeout(2 * time.Second)

0 commit comments

Comments
 (0)