test/hparticipant_test.rb in openwferu-0.9.13 vs test/hparticipant_test.rb in openwferu-0.9.14

- old
+ new

@@ -78,11 +78,11 @@ #puts id.to_s #puts "alice count : #{@hpAlice.size}" #puts "bob count : #{@hpBob.size}" - sleep 0.700 + sleep 0.200 assert_equal @hpBob.size, 0 assert_equal @hpAlice.size, 1 wi = @hpAlice.list_workitems(id.workflow_instance_id)[0] @@ -93,22 +93,22 @@ wi.message = "Hello bob !" @hpAlice.forward(wi) - sleep 0.500 + sleep 0.200 assert_equal @hpAlice.size, 0 assert_equal @hpBob.size, 1 wi = @hpBob.list_workitems(id.workflow_instance_id)[0] assert_equal wi.message, "Hello bob !" @hpBob.proceed(wi) - sleep 0.500 + sleep 0.200 assert_equal @hpAlice.size, 0 assert_equal @hpBob.size, 0 assert_equal @engine.get_expression_storage.size, 1 @@ -122,11 +122,11 @@ @engine.register_participant(:alice, @hpAlice) @engine.register_participant(:bob, @hpBob) id = @engine.launch(HpDefinition0) - sleep 0.300 + sleep 0.200 assert_equal @hpAlice.size, 1 assert_equal @hpBob.size, 0 wi = @hpAlice.first_workitem @@ -138,11 +138,11 @@ wi = @hpBob.first_workitem @hpBob.proceed wi - sleep 0.300 + sleep 0.200 assert_equal @hpAlice.size, 0 assert_equal @hpBob.size, 1 wi = @hpBob.first_workitem @@ -154,10 +154,10 @@ wi = @hpAlice.first_workitem @hpAlice.forward wi - sleep 0.300 + sleep 0.200 assert_equal @hpAlice.size, 0 assert_equal @hpBob.size, 0 assert_equal @engine.get_expression_storage.size, 1