From bb089996acb36f26399dbfc03f92194197ed2043 Mon Sep 17 00:00:00 2001 From: Loris Pozzobon Date: Mon, 15 Jul 2024 20:11:48 +0200 Subject: [PATCH] Deprecate IO.read warning in Newsletter exercise (#1503) --- exercises/concept/newsletter/test/newsletter_test.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/concept/newsletter/test/newsletter_test.exs b/exercises/concept/newsletter/test/newsletter_test.exs index 8526ea750a..d97589a093 100644 --- a/exercises/concept/newsletter/test/newsletter_test.exs +++ b/exercises/concept/newsletter/test/newsletter_test.exs @@ -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