test/functional/ft_2_errors.rb in ruote-2.1.4 vs test/functional/ft_2_errors.rb in ruote-2.1.5

- old
+ new

@@ -224,11 +224,11 @@ alpha end @engine.register_participant 'alpha', WeakCancelParticipant - noisy + #noisy wfid = @engine.launch(pdef) wait_for(:alpha) @@ -236,12 +236,19 @@ wait_for(wfid) ps = @engine.process(wfid) - puts ps.errors.first.trace - puts ps.expressions.size + #puts ps.errors.first.trace + assert_equal 1, ps.errors.size + assert_equal 2, ps.expressions.size + + @engine.kill_process(wfid) + + wait_for(wfid) + + assert_nil @engine.process(wfid) end def test_errors_and_subprocesses pdef = Ruote.process_definition do @@ -352,9 +359,9 @@ e = es.first assert_equal 1, es.size assert_equal 'reply', e['msg']['action'] assert_equal wfid, e['msg']['fei']['wfid'] - assert_equal 7, e.size + assert_equal 8, e.size end end