test/ft_55_ptimeout.rb in openwferu-0.9.13 vs test/ft_55_ptimeout.rb in openwferu-0.9.14
- old
+ new
@@ -27,37 +27,36 @@
#
# Test 0
#
class Test0 < ProcessDefinition
- sequence do
- concurrence :count => 1 do
- sequence do
- participant :ref => "channel_z", :timeout => "1s"
- _print "cancelled?"
- end
- _print "concurrence done"
+ concurrence :count => 1 do
+ sequence do
+ participant :ref => "channel_z", :timeout => "1s"
+ _print "cancelled?"
end
+ _print "concurrence done"
end
end
#def xxxx_0
def test_0
- @engine.register_participant :channel_z, NullParticipant
-
- #class << @engine.get_scheduler
+ #scheduler = @engine.get_scheduler
+ #class << scheduler
# attr_reader :pending_jobs
#end
- #
- # having a look into the scheduler
- #require 'pp'; pp @engine.get_scheduler.pending_jobs
+ log_level_to_debug
+
+ @engine.register_participant :channel_z, NullParticipant
+
+ #require 'pp'; pp(scheduler.pending_jobs)
assert_no_jobs_left
dotest(Test0, "concurrence done")
- #require 'pp'; pp @engine.get_scheduler.pending_jobs
+ #require 'pp'; pp(scheduler.pending_jobs)
assert_no_jobs_left
end
end