test/restart_sleep_test.rb in openwferu-0.9.15 vs test/restart_sleep_test.rb in openwferu-0.9.16
- old
+ new
@@ -84,32 +84,32 @@
def dotest (engine_class, def_class)
#require 'fileutils'
#FileUtils.remove_dir "work" if File.exist? "work"
- engine = new_engine(engine_class)
+ engine = new_engine engine_class
#$OWFE_LOG.level = Logger::DEBUG
- li = LaunchItem.new(def_class)
+ li = LaunchItem.new def_class
- engine.launch(li)
+ engine.launch li
- sleep(1)
+ sleep 1
- engine.stop()
+ engine.stop
$OWFE_LOG.warn "stopped the engine"
old_engine = engine
- engine = new_engine(engine_class)
+ engine = new_engine engine_class
#$OWFE_LOG.level = Logger::DEBUG
$OWFE_LOG.warn "started the new engine"
- sleep(11)
- #sleep(21)
+ sleep 11
+ #sleep 21
s_old = old_engine.application_context["__tracer"].to_s
s_now = engine.application_context["__tracer"].to_s
#puts "__ s_old >>>#{s_old}<<<"