Skip to content

Commit

Permalink
CI: Fix test for current Windows version
Browse files Browse the repository at this point in the history
  • Loading branch information
DOBRO committed Dec 27, 2023
1 parent 732dca8 commit a40c254
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/uef_file_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ read_file_fast_test_() ->
TestDataDir = get_test_data_dir(),
ExistingFile = filename:join([TestDataDir, "uef_file_1.txt"]),
NonExistingFile = filename:join([TestDataDir, "uef_file_nonexisting.txt"]),
ExpectedData = case os:type() of
{win32, _} -> <<"test1\r\n">>;
_ -> <<"test1\n">>
end,
[
?_assertEqual({ok, <<"test1\n">>}, uef_file:read_file_fast(ExistingFile)),
?_assertEqual({ok, ExpectedData}, uef_file:read_file_fast(ExistingFile)),
?_assertEqual({error, enoent}, uef_file:read_file_fast(NonExistingFile))
].

Expand Down

0 comments on commit a40c254

Please sign in to comment.