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

Version Path
ruote-maestrodev-2.2.1 test/functional/rt_2_errors.rb
ruote-2.2.0 test/functional/rt_2_errors.rb
ruote-2.1.11 test/functional/rt_2_errors.rb
ruote-2.1.10 test/functional/rt_2_errors.rb
ruote-2.1.9 test/functional/rt_2_errors.rb
ruote-2.1.8 test/functional/rt_2_errors.rb
ruote-2.1.7 test/functional/rt_2_errors.rb
ruote-2.1.6 test/functional/rt_2_errors.rb
ruote-2.1.5 test/functional/rt_2_errors.rb
ruote-2.1.4 test/functional/rt_2_errors.rb
ruote-2.1.3 test/functional/rt_2_errors.rb
ruote-2.1.2 test/functional/rt_2_errors.rb
ruote-2.1.1 test/functional/rt_2_errors.rb