Sha256: c5849e9a9478ecd2a41245f6bbed75bc28e9a3e200bacfee049c7922d502cb2c
Contents?: true
Size: 1012 Bytes
Versions: 1
Compression:
Stored size: 1012 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 test_0 assert_no_jobs_left dotest Test0, "ok\ndone" sleep 0.350 # skip one scheduler beat #s = @engine.get_scheduler #class << s # attr_reader :pending_jobs #end #p s.pending_jobs.collect { |j| [ j.job_id, j.class.name ] } assert_no_jobs_left end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
openwferu-0.9.17 | test/ft_56_timeout.rb |