From 7f84d02bed5d7a4a43e21db06babc4526a3195be Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Fri, 8 Dec 2017 23:12:29 +0100 Subject: [PATCH] fixed_thread_pool_spec.rb: Avoid RSpec warning --- spec/concurrent/executor/fixed_thread_pool_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/concurrent/executor/fixed_thread_pool_spec.rb b/spec/concurrent/executor/fixed_thread_pool_spec.rb index 6c5ee43aa..a87eed8d1 100644 --- a/spec/concurrent/executor/fixed_thread_pool_spec.rb +++ b/spec/concurrent/executor/fixed_thread_pool_spec.rb @@ -208,7 +208,7 @@ module Concurrent end end latch.wait(1) - }.to raise_error + }.to raise_error(RejectedExecutionError) end # On discard, we'd expect no error, but also not all five results