mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-16 17:30:43 -07:00
Fix flaky test which assumes total_render_time can't be 0.
jruby has millisecond precision for Time.now, so total_render_time can be 0 due to this lack of precision.
This commit is contained in:
@@ -72,7 +72,7 @@ class RenderProfilingTest < Minitest::Test
|
||||
t = Template.parse("{% include 'a_template' %}", :profile => true)
|
||||
t.render!
|
||||
|
||||
assert t.profiler.total_render_time > 0, "Total render time was not calculated"
|
||||
assert t.profiler.total_render_time >= 0, "Total render time was not calculated"
|
||||
end
|
||||
|
||||
def test_profiling_uses_include_to_mark_children
|
||||
|
||||
Reference in New Issue
Block a user