Skip to content

Commit 143a6cf

Browse files
committed
Improve test for TaggedLogging "keeps each tag in their own thread"
1 parent d38e5d2 commit 143a6cf

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
@@ -72,11 +72,12 @@ def flush(*)
7272
test "keeps each tag in their own thread" do
7373
@logger.tagged("BCX") do
7474
Thread.new do
75+
@logger.info "Dull story"
7576
@logger.tagged("OMG") { @logger.info "Cool story" }
7677
end.join
7778
@logger.info "Funky time"
7879
end
79-
assert_equal "[OMG] Cool story\n[BCX] Funky time\n", @output.string
80+
assert_equal "Dull story\n[OMG] Cool story\n[BCX] Funky time\n", @output.string
8081
end
8182

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

0 commit comments

Comments
 (0)