Permalink
Browse files

Fix test to not assume which thread finishes first

  • Loading branch information...
jeremy committed Aug 29, 2008
1 parent 204a8cc commit 5a6e20b60702fbe86fa84c1b7b5a25f33cec5945
Showing with 2 additions and 1 deletion.
  1. +2 −1 activesupport/test/buffered_logger_test.rb
@@ -134,6 +134,7 @@ def test_logger_should_maintain_separate_buffers_for_each_thread
a.join
b.join
- assert_equal "a\nb\nc\nx\ny\nz\n", @output.string
+ assert @output.string.include?("a\nb\nc\n")
+ assert @output.string.include?("x\ny\nz\n")
end
end

0 comments on commit 5a6e20b

Please sign in to comment.