Sha256: 854fc23b0a0c66ae2f60ab30eaaadff51e69df253725c66fe181c616319b40e7
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 KB
Contents
# # Testing OpenWFE # # John Mettraux at openwfe.org # # Sun Oct 29 16:18:25 JST 2006 # #require "rubygems" #require "thread" #require "fastthread" require 'test/unit' require 'openwfe/utils' require 'openwfe/expool/expressionpool' # # testing otime and the scheduler (its cron aspect) # class WfidTest < Test::Unit::TestCase #def setup #end #def teardown #end def test_wfid_0 expool = OpenWFE::ExpressionPool.new("expool", nil) class << expool public :new_workflow_instance_id end n = 21 map = {} n.times do |i| Thread.new do #begin wfid = expool.new_workflow_instance_id() #rescue Exception => e # OpenWFE::die(e.to_s) #end #puts wfid OpenWFE::die("\nduplicate workflow_instance_id found !!!") \ if map[wfid] map[wfid] = true end end sleep(2) #puts assert true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
openwferu-0.9.5 | test/wfid_test.rb |
openwferu-0.9.6 | test/wfid_test.rb |