Skip to content

Commit

Permalink
Merge pull request #3289 from ashie/follow-up-#3288
Browse files Browse the repository at this point in the history
Fix some failed tests of #3288 on Windows
  • Loading branch information
cosmo0920 committed Mar 9, 2021
2 parents 3e812a8 + 4e00c7b commit 5a6fd93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def test_format_suppresses_tab
@formatter.configure({})
formatted = @formatter.format(tag, @time, record_with_tab)

assert_equal("message:awe some\tgreeting:hello \n", formatted)
assert_equal("message:awe some\tgreeting:hello #{@newline}", formatted)
end

def test_format_suppresses_tab_custom_replacement
Expand All @@ -202,7 +202,7 @@ def test_format_suppresses_tab_custom_replacement
)
formatted = @formatter.format(tag, @time, record_with_tab)

assert_equal("message:aweXsome\tgreeting:helloX\n", formatted)
assert_equal("message:aweXsome\tgreeting:helloX#{@newline}", formatted)
end

def test_format_suppresses_custom_delimiter
Expand All @@ -212,7 +212,7 @@ def test_format_suppresses_custom_delimiter
)
formatted = @formatter.format(tag, @time, record)

assert_equal("message=a esomewgreeting=hello\n", formatted)
assert_equal("message=a esomewgreeting=hello#{@newline}", formatted)
end
end

Expand Down

0 comments on commit 5a6fd93

Please sign in to comment.