Skip to content

Commit

Permalink
Fix some failed tests of fluent#3288 on Windows
Browse files Browse the repository at this point in the history
Line breaks should be "\r\n".

Signed-off-by: Takuro Ashie <ashie@clear-code.com>
  • Loading branch information
ashie committed Mar 9, 2021
1 parent 3e812a8 commit 4e00c7b
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 4e00c7b

Please sign in to comment.