Skip to content
This repository
Browse code

Fix test to not assume which thread finishes first

  • Loading branch information...
commit 5a6e20b60702fbe86fa84c1b7b5a25f33cec5945 1 parent 204a8cc
Jeremy Kemper jeremy authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  activesupport/test/buffered_logger_test.rb
3  activesupport/test/buffered_logger_test.rb
@@ -134,6 +134,7 @@ def test_logger_should_maintain_separate_buffers_for_each_thread
134 134 a.join
135 135 b.join
136 136
137   - assert_equal "a\nb\nc\nx\ny\nz\n", @output.string
  137 + assert @output.string.include?("a\nb\nc\n")
  138 + assert @output.string.include?("x\ny\nz\n")
138 139 end
139 140 end

0 comments on commit 5a6e20b

Please sign in to comment.
Something went wrong with that request. Please try again.