spec/process/life_cycle_examples.rb in asynchronic-1.2.2 vs spec/process/life_cycle_examples.rb in asynchronic-1.3.0

- old
+ new

@@ -460,6 +460,20 @@ process.must_be_completed process.result.must_be_nil process.data.must_equal text: 'Input was 1', value: 1 end + it 'NestedJobWithErrorInChild' do + process = create NestedJobWithErrorInChild, queue: :test_queue + + process.enqueue + + Timeout.timeout(1) do + until process.status == :aborted + execute queue_engine[:test_queue] + end + end + + process.real_error.must_equal "Error in Child_2_2" + end + end \ No newline at end of file