test/test_history.rb in sidetiq-0.6.3 vs test/test_history.rb in sidetiq-0.7.0
- old
+ new
@@ -21,10 +21,11 @@
assert_empty actual[:backtrace]
assert_empty actual[:exception]
refute_empty actual[:node]
refute_empty actual[:timestamp]
+ assert actual[:runtime] > 0
end
def test_failure
begin
middlewared do
@@ -45,9 +46,10 @@
assert_equal "StandardError", actual[:exception]
refute_empty actual[:backtrace]
refute_empty actual[:node]
refute_empty actual[:timestamp]
+ assert actual[:runtime] > 0
end
def middlewared
middleware = Sidetiq::Middleware::History.new