mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 10:52:48 -07:00
Merge pull request #449 from Shopify/fix-flaky-total-render-time-test
Fix flaky test which assumes total_render_time can't be 0.
This commit is contained in:
@@ -72,7 +72,7 @@ class RenderProfilingTest < Minitest::Test
|
|||||||
t = Template.parse("{% include 'a_template' %}", :profile => true)
|
t = Template.parse("{% include 'a_template' %}", :profile => true)
|
||||||
t.render!
|
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
|
end
|
||||||
|
|
||||||
def test_profiling_uses_include_to_mark_children
|
def test_profiling_uses_include_to_mark_children
|
||||||
|
|||||||
Reference in New Issue
Block a user