Skip to content

Commit

Permalink
JRuby-friendly tests
Browse files Browse the repository at this point in the history
Apparently RSpec's method invocation counting isn't thread safe :(
  • Loading branch information
tarcieri committed May 31, 2015
1 parent e2e35c8 commit a27a683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/turbine/processor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

it "tolerates processing errors gracefully" do
# Check the default handler is printing to STDERR
expect(STDERR).to receive(:puts).exactly(example_message_count).times
expect(STDERR).to receive(:puts).at_most(example_message_count).times

example_processor.process(mock_consumer) do |_msg, _ex|
fail "uhoh!"
Expand Down

0 comments on commit a27a683

Please sign in to comment.