Skip to content

Commit 4d99720

Browse files
authored
Merge pull request rails#28171 from sorra/fresh-thread-tagged-logging
Improve test for TaggedLogging "keeps each tag in their own thread"
2 parents cb9e35e + 9ce2405 commit 4d99720

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

activesupport/test/tagged_logging_test.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,12 @@ def flush(*)
7474
test "keeps each tag in their own thread" do
7575
@logger.tagged("BCX") do
7676
Thread.new do
77+
@logger.info "Dull story"
7778
@logger.tagged("OMG") { @logger.info "Cool story" }
7879
end.join
7980
@logger.info "Funky time"
8081
end
81-
assert_equal "[OMG] Cool story\n[BCX] Funky time\n", @output.string
82+
assert_equal "Dull story\n[OMG] Cool story\n[BCX] Funky time\n", @output.string
8283
end
8384

8485
test "keeps each tag in their own instance" do

0 commit comments

Comments
 (0)