test/ft_22_history.rb in openwferu-0.9.4 vs test/ft_22_history.rb in openwferu-0.9.5

- old
+ new

@@ -12,11 +12,12 @@ require 'openwfe/expressions/raw_prog' include OpenWFE -class FlowTest22 < FlowTestBase +class FlowTest22 < Test::Unit::TestCase + include FlowTestBase #def setup #end #def teardown @@ -55,14 +56,15 @@ #f = File.open("history.log", "w") #f.write(history.to_s) #f.close() + #assert \ + # (history.entries.size == 36), + # "invalid history count : #{history.entries.size}" assert \ - (history.entries.size == 34 or history.entries.size == 37), - "History count is #{history.entries.size} should be 34 (or 37)" - - # 37 in case of persisted engine (it's slower, so rescheduling kicks in) + (history.entries.size > 33 and history.entries.size < 39), + "invalid history count : #{history.entries.size}" end end