test/functional/eft_29_cron.rb in ruote-2.2.0 vs test/functional/eft_29_cron.rb in ruote-2.3.0

- old
+ new

@@ -3,11 +3,11 @@ # testing ruote # # Tue Oct 27 16:13:41 JST 2009 # -require File.join(File.dirname(__FILE__), 'base') +require File.expand_path('../base', __FILE__) class EftCronTest < Test::Unit::TestCase include FunctionalBase @@ -20,23 +20,23 @@ end #noisy t = Time.now - wfid = @engine.launch(pdef) + wfid = @dashboard.launch(pdef) wait_for(7) d = Time.now - t - @engine.cancel_process(wfid) + @dashboard.cancel_process(wfid) wait_for(5) assert_match /^ok\nok/, @tracer.to_s - assert_nil @engine.process(wfid) - assert_equal 0, @engine.storage.get_many('schedules').size + assert_nil @dashboard.process(wfid) + assert_equal 0, @dashboard.storage.get_many('schedules').size #assert d < 5.0, "#{d} < 5.0 :(" end def test_every @@ -46,19 +46,19 @@ end end #noisy - wfid = @engine.launch(pdef) + wfid = @dashboard.launch(pdef) wait_for(7) - @engine.cancel_process(wfid) + @dashboard.cancel_process(wfid) wait_for(5) assert_match /^ok\nok/, @tracer.to_s - assert_nil @engine.process(wfid) - assert_equal 0, @engine.storage.get_many('schedules').size + assert_nil @dashboard.process(wfid) + assert_equal 0, @dashboard.storage.get_many('schedules').size end end