From c3206f644325c026fc5b700f0ea75ce9bd2e9d02 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Mon, 27 Nov 2023 18:17:17 +0100 Subject: [PATCH] Increase timeout to avoid transient spec failure --- shared/sizedqueue/enque.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/sizedqueue/enque.rb b/shared/sizedqueue/enque.rb index 3bc8008fa..7b6b1df73 100644 --- a/shared/sizedqueue/enque.rb +++ b/shared/sizedqueue/enque.rb @@ -120,7 +120,7 @@ q << 1 t = Thread.new { - -> { q.send(@method, 1, timeout: 0.1) }.should raise_error(ClosedQueueError, "queue closed") + -> { q.send(@method, 1, timeout: 10) }.should raise_error(ClosedQueueError, "queue closed") } Thread.pass until q.num_waiting == 1