Permalink
Browse files

Re-instate the sleep -- the build failed on JRuby.

Locally, it passed on JRuby for me but failed on travis.
It failed due to reporting the time taken as 0% instead of 100%.

So, we need to ensure some time passes, but it doesn't need to be much.
  • Loading branch information...
1 parent 93a609d commit f256f1bdb3bc516ba622a8f34e810e70f31c0bb2 @myronmarston myronmarston committed Dec 24, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 spec/rspec/core/formatters/base_text_formatter_spec.rb
@@ -344,7 +344,9 @@ def run_all_and_dump_pending
describe "#dump_profile" do
before do
group = RSpec::Core::ExampleGroup.describe("group") do
- example("example") { }
+ # Use a sleep so there is some measurable time, to ensure
+ # the reported percent is 100%, not 0%.
+ example("example") { sleep 0.001 }
end
group.run(double('reporter').as_null_object)

0 comments on commit f256f1b

Please sign in to comment.