test/timeout_test.rb in openwferu-0.9.4 vs test/timeout_test.rb in openwferu-0.9.5

- old
+ new

@@ -30,10 +30,11 @@ class TimeoutDefinition0 < ProcessDefinition def make process_definition :name => "to0", :revision => "0" do sequence do participant :ref => "albert", :timeout => "500" + _print "timedout? ${f:__timed_out__}" _print "over ${f:done}" end end end end @@ -63,11 +64,12 @@ assert \ albert.size == 0, "workitem was not removed from workitem store" assert \ - s == "over", + s == """timedout? true +over""", "flow did not reach 'over'" end def test_timeout_1 @@ -95,14 +97,16 @@ s = engine.application_context["__tracer"].to_s #puts "trace is >#{s}<" #puts "albert.size is #{albert.size}" + # in this test, the participant doesn't time out + assert \ albert.size == 0, "workitem was not removed from workitem store" assert \ - s == "over ok", + s == "timedout? \nover ok", "flow did not reach 'over ok'" pjc = engine.get_scheduler.pending_job_count assert \