test/test_thread_pool.rb in zold-0.18.8 vs test/test_thread_pool.rb in zold-0.18.9

- old
+ new

@@ -67,9 +67,17 @@ end assert_equal(3, idx.value) 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' + end + end + end + def test_adds_and_stops pool = Zold::ThreadPool.new('test', log: test_log) pool.add do sleep 60 * 60 end