Skip to content

Commit

Permalink
Deprecate IO.read warning in Newsletter exercise (#1503)
Browse files Browse the repository at this point in the history
  • Loading branch information
lorisp1 authored Jul 15, 2024
1 parent 0973cb7 commit bb08999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/concept/newsletter/test/newsletter_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ defmodule NewsletterTest do
test "closes the file" do
file = File.open!(@temp_file_path, [:read])
assert Newsletter.close_log(file) == :ok
assert IO.read(file, :all) == {:error, :terminated}
assert IO.read(file, :eof) == {:error, :terminated}
end
end

Expand Down

0 comments on commit bb08999

Please sign in to comment.