Forgot the patch

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
This commit is contained in:
Peter Lemenkov 2021-11-06 21:55:55 +01:00
parent 2f3b01a083
commit ff02a1c768

View File

@ -0,0 +1,26 @@
From: jendis <41624531+jendis@users.noreply.github.com>
Date: Wed, 13 Oct 2021 23:48:14 +0200
Subject: [PATCH] Fix elixir test assertion for erlang >=OTP-24.1 (#11309)
diff --git a/lib/elixir/test/elixir/exception_test.exs b/lib/elixir/test/elixir/exception_test.exs
index 6242194f7..c7d2f1a56 100644
--- a/lib/elixir/test/elixir/exception_test.exs
+++ b/lib/elixir/test/elixir/exception_test.exs
@@ -470,11 +470,12 @@ test "annotates undefined function error with suggestions" do
* min/1
"""
- assert blame_message(:erlang, & &1.gt_cookie()) == """
- function :erlang.gt_cookie/0 is undefined or private. Did you mean one of:
+ assert blame_message(:erlang, & &1.hal()) == """
+ function :erlang.hal/0 is undefined or private. Did you mean one of:
- * get_cookie/0
- * set_cookie/2
+ * halt/0
+ * halt/1
+ * halt/2
"""
end