test/ft_34_cancelwfid.rb in openwferu-0.9.16 vs test/ft_34_cancelwfid.rb in openwferu-0.9.17
- old
+ new
@@ -37,21 +37,21 @@
sp = @engine.register_participant(
"store_participant", OpenWFE::HashParticipant)
fei = @engine.launch(TestCancelWfid0)
- sleep 0.100
+ sleep 0.300
@engine.cancel_process(fei.wfid)
- sleep 0.300
+ sleep 0.350
- l = @engine.list_processes()
+ l = @engine.list_processes
- assert_equal l.size, 0
+ assert_equal 0, l.size
- assert_equal sp.size, 0
+ assert_equal 0, sp.size
# check that participant got cancelled as well
end
def test_cancelwfid_1
@@ -60,18 +60,18 @@
sp = @engine.register_participant(
"store_participant", OpenWFE::YamlParticipant)
fei = @engine.launch(TestCancelWfid0)
- sleep 0.300
+ sleep 0.350
@engine.cancel_process(fei.wfid)
- sleep 0.300
+ sleep 0.350
- assert_equal @engine.get_process_stack(fei.wfid).size, 0
+ assert_equal 0, @engine.get_process_stack(fei.wfid).size
- assert_equal sp.size, 0
+ assert_equal 0, sp.size
# check that participant got cancelled as well
end
end