From a5717a3f8d6c1aeaae64034373647c7508221a47 Mon Sep 17 00:00:00 2001 From: Dylan Thacker-Smith Date: Mon, 15 Sep 2014 17:26:55 -0400 Subject: [PATCH] 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. --- test/integration/render_profiling_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/render_profiling_test.rb b/test/integration/render_profiling_test.rb index a64e1f4..48f433d 100644 --- a/test/integration/render_profiling_test.rb +++ b/test/integration/render_profiling_test.rb @@ -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