Sha256: da76f98fe764a2f8e2aa8c20ec7565f6d5a869efcdf3bf816126af812177b5a1
Contents?: true
Size: 827 Bytes
Versions: 13
Compression:
Stored size: 827 Bytes
Contents
# # testing ruote # # Thu Jul 16 13:49:09 JST 2009 # require File.join(File.dirname(__FILE__), 'base') require File.join(File.dirname(__FILE__), 'restart_base') class RtErrorsTest < Test::Unit::TestCase include FunctionalBase include RestartBase def test_err_and_restart start_new_engine pdef = Ruote.process_definition :name => 'test' do sequence do nada end end #noisy wfid = @engine.launch(pdef) wait_for(3) ps = @engine.process(wfid) assert_equal 1, ps.errors.size @engine.shutdown # restart... start_new_engine #noisy assert_equal 1, @engine.processes.size ps = @engine.process(wfid) assert_equal 1, ps.errors.size @engine.cancel_process(wfid) wait_for(wfid) assert_nil @engine.process(wfid) end end
Version data entries
13 entries across 13 versions & 2 rubygems