test/restart_cron_test.rb in openwferu-0.9.15 vs test/restart_cron_test.rb in openwferu-0.9.16
- old
+ new
@@ -25,17 +25,18 @@
#def teardown
#end
class RestartDefinition0 < ProcessDefinition
- def make
- process_definition :name => "rs0", :revision => "0" do
+ #def make
+ # process_definition :name => "rs0", :revision => "0" do
cron :tab => "* * * * *", :name => "//cron" do
- participant :cron_event_restart
+ #participant :cron_event_restart
+ cron_event_restart
end
- end
- end
+ # end
+ #end
end
def test_restart_0
engine = FilePersistedEngine.new
@@ -44,10 +45,9 @@
participant = lambda do
#puts "______________________ :cron_event_restart"
count = count + 1
end
-
engine.register_participant(:cron_event_restart, &participant)
engine.launch(RestartDefinition0)
sleep(60)