Sha256: ffe0522e76a0e8d8bda8143328e5aa5c107f704b6902b4a985c8b2211ab175ea

Contents?: true

Size: 804 Bytes

Versions: 7

Compression:

Stored size: 804 Bytes

Contents

#
# Testing OpenWFEru
#
# John Mettraux at openwfe.org
#

require 'flowtestbase'
require 'pending'
require 'openwfe/def'
#require 'openwfe/participants/participants'

include OpenWFE


class FlowTest56 < Test::Unit::TestCase
    include FlowTestBase
    include PendingJobsMixin

    #def setup
    #end

    #def teardown
    #end


    #
    # Test 0
    #

    class Test0 < ProcessDefinition
        sequence do
            _timeout :after => "1s" do
                sequence do
                    _print "ok"
                    _sleep "2s"
                    _print "not ok"
                end
            end
            _print "done"
        end
    end

    #def xxxx_0
    def test_0

        assert_no_jobs_left

        dotest Test0, "ok\ndone"

        assert_no_jobs_left
    end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
openwferu-0.9.11 test/ft_56_timeout.rb
openwferu-0.9.12 test/ft_56_timeout.rb
openwferu-0.9.12.863 test/ft_56_timeout.rb
openwferu-0.9.13 test/ft_56_timeout.rb
openwferu-0.9.14 test/ft_56_timeout.rb
openwferu-0.9.15 test/ft_56_timeout.rb
openwferu-0.9.16 test/ft_56_timeout.rb