test/test_thread_pool.rb in zold-0.19.1 vs test/test_thread_pool.rb in zold-0.19.2

- old
+ new

@@ -69,11 +69,14 @@ assert_equal('0 1 2', indexes.to_a.sort.join(' ')) end def test_runs_with_exceptions assert_raises do - Zold::ThreadPool.new('test', log: test_log).run(1) do - raise 'intended' + Zold::ThreadPool.new('test', log: test_log).run(5) do |i| + if i == 4 + sleep 0.1 + raise 'intended' + end end end end def test_adds_and_stops