test/functional/eft_11_wait.rb in ruote-2.1.8 vs test/functional/eft_11_wait.rb in ruote-2.1.9

- old
+ new

@@ -28,10 +28,14 @@ @engine.register_participant(:alpha) { ts << Time.now } assert_trace 'done.', pdef #p [ ts[1].sec, ts[0].sec ] - assert [ 2, 3 ].include?((ts[1].sec - ts[0].sec) % 60) + d = (ts[1].sec - ts[0].sec) % 60 + + assert( + [ 2, 3 ].include?(d), + "delta is #{d}, which isn't 2 or 3") end def test_cancel_wait pdef = Ruote.process_definition do