aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDongqing Hu <sorra@outlook.com>2017-02-26 11:59:12 +0800
committerDongqing Hu <sorra@outlook.com>2017-02-26 11:59:12 +0800
commit143a6cfcf65082343fa2c5c0af4a62fa732c8ad9 (patch)
tree41603dde2bcb1312e4e0e71774205dc49d25292b
parentd38e5d2719ad8f236d3bd30c60a113d8087db43e (diff)
downloadrails-143a6cfcf65082343fa2c5c0af4a62fa732c8ad9.tar.gz
rails-143a6cfcf65082343fa2c5c0af4a62fa732c8ad9.tar.bz2
rails-143a6cfcf65082343fa2c5c0af4a62fa732c8ad9.zip
Improve test for TaggedLogging "keeps each tag in their own thread"
-rw-r--r--activesupport/test/tagged_logging_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activesupport/test/tagged_logging_test.rb b/activesupport/test/tagged_logging_test.rb
index 2469e827d4..8e91bebb39 100644
--- a/activesupport/test/tagged_logging_test.rb
+++ b/activesupport/test/tagged_logging_test.rb
@@ -72,11 +72,12 @@ class TaggedLoggingTest < ActiveSupport::TestCase
test "keeps each tag in their own thread" do
@logger.tagged("BCX") do
Thread.new do
+ @logger.info "Dull story"
@logger.tagged("OMG") { @logger.info "Cool story" }
end.join
@logger.info "Funky time"
end
- assert_equal "[OMG] Cool story\n[BCX] Funky time\n", @output.string
+ assert_equal "Dull story\n[OMG] Cool story\n[BCX] Funky time\n", @output.string
end
test "keeps each tag in their own instance" do