Skip to content

Commit ebb9b13

Browse files
committed
queue: increase timeout for Example_simpleQueueCustomMsgPack test
Increased timeout for Example_simpleQueueCustomMsgPack since in macOs ci sometimes 2 seconds is not enough. Closes #277
1 parent 888d74d commit ebb9b13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

queue/example_msgpack_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (c *dummyData) EncodeMsgpack(e *encoder) error {
4848
func Example_simpleQueueCustomMsgPack() {
4949
opts := tarantool.Opts{
5050
Reconnect: time.Second,
51-
Timeout: 2500 * time.Millisecond,
51+
Timeout: 10 * time.Second,
5252
MaxReconnects: 5,
5353
User: "test",
5454
Pass: "test",
@@ -118,7 +118,7 @@ func Example_simpleQueueCustomMsgPack() {
118118
}
119119
task.Bury()
120120

121-
task, err = que.TakeTimeout(2 * time.Second)
121+
task, err = que.TakeTimeout(10 * time.Second)
122122
if err != nil {
123123
log.Fatalf("Take with timeout failed: %s", err)
124124
}

0 commit comments

Comments
 (0)