Skip to content

Commit

Permalink
test: fix TestTtlQueue
Browse files Browse the repository at this point in the history
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
  • Loading branch information
better0fdead authored and oleg-jukovec committed Mar 24, 2023
1 parent 8c35168 commit 888d74d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion queue/queue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ func TestTtlQueue(t *testing.T) {
}
}

time.Sleep(5 * time.Second)
time.Sleep(10 * time.Second)

//Take
task, err = q.TakeTimeout(2 * time.Second)
Expand Down

0 comments on commit 888d74d

Please sign in to comment.