test/functional/rt_0_wait.rb in ruote-2.2.0 vs test/functional/rt_0_wait.rb in ruote-2.3.0
- old
+ new
@@ -3,12 +3,12 @@
# testing ruote
#
# Wed Jul 1 23:22:26 JST 2009
#
-require File.join(File.dirname(__FILE__), 'base')
-require File.join(File.dirname(__FILE__), 'restart_base')
+require File.expand_path('../base', __FILE__)
+require File.expand_path('../restart_base', __FILE__)
class RtWaitTest < Test::Unit::TestCase
include FunctionalBase
include RestartBase
@@ -25,31 +25,31 @@
end
end
#noisy
- wfid = @engine.launch(pdef)
+ wfid = @dashboard.launch(pdef)
wait_for(5)
- assert_equal 1, @engine.processes.size
- assert_equal 1, @engine.storage.get_many('schedules').size
+ assert_equal 1, @dashboard.processes.size
+ assert_equal 1, @dashboard.storage.get_many('schedules').size
- @engine.shutdown
+ @dashboard.shutdown
# restart...
start_new_engine
#noisy
- assert_equal 1, @engine.processes.size
- assert_equal 1, @engine.storage.get_many('schedules').size
+ assert_equal 1, @dashboard.processes.size
+ assert_equal 1, @dashboard.storage.get_many('schedules').size
- @engine.cancel_process(wfid)
+ @dashboard.cancel_process(wfid)
wait_for(wfid)
- assert_equal 0, @engine.processes.size
+ assert_equal 0, @dashboard.processes.size
end
end