test/ft_26_load.rb in openwferu-0.9.11 vs test/ft_26_load.rb in openwferu-0.9.12

- old
+ new

@@ -25,19 +25,20 @@ # # Test 0 # class TestDefinition0 < ProcessDefinition - def make - process_definition :name => "test0", :revision => "0" do - sequence do - count - count - end + process_definition :name => "test0", :revision => "0" do + sequence do + count + count end end end + #class TestDefinition0 < ProcessDefinition + # count + #end #def xxxx_load_0 def test_load_0 map = {} @@ -50,22 +51,28 @@ count + 1 end map[workitem.flow_id] = count end - n = 100 + n = 1000 n.times do |i| li = LaunchItem.new(TestDefinition0) li.flow_id = i @engine.launch(li) end + #while @engine.get_expression_storage.size > 1 + # sleep 0.001 + #end + @engine.join_until_idle + good = true n.times do |i| c = map[i] if c == 2 + #if c == 1 print "." else print c good = false end