diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-08-29 15:59:56 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-08-29 15:59:56 -0700 |
commit | 5a6e20b60702fbe86fa84c1b7b5a25f33cec5945 (patch) | |
tree | 0ceb63fb867e7dc54a7b93a28f45427e4ddd7b0e | |
parent | 204a8cce88d986fcfafe01ce9ba44818739374c3 (diff) | |
download | rails-5a6e20b60702fbe86fa84c1b7b5a25f33cec5945.tar.gz rails-5a6e20b60702fbe86fa84c1b7b5a25f33cec5945.tar.bz2 rails-5a6e20b60702fbe86fa84c1b7b5a25f33cec5945.zip |
Fix test to not assume which thread finishes first
-rw-r--r-- | activesupport/test/buffered_logger_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activesupport/test/buffered_logger_test.rb b/activesupport/test/buffered_logger_test.rb index 6319c09210..28dd34334f 100644 --- a/activesupport/test/buffered_logger_test.rb +++ b/activesupport/test/buffered_logger_test.rb @@ -134,6 +134,7 @@ class BufferedLoggerTest < Test::Unit::TestCase 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 |