Skip to content

Commit c729f2d

Browse files
committed
Fix CI
1 parent fd17586 commit c729f2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mix/test/mix/task_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ defmodule Mix.TaskTest do
4343
end
4444

4545
test "run/2 converts OptionParser.ParseError into Mix errors" do
46-
message = "Could not invoke task \"hello\": 1 error found!\n--unknown : Unknown option"
46+
message = ~r"Could not invoke task \"hello\": 1 error found!\n--unknown : Unknown option"
4747

4848
assert_raise Mix.Error, message, fn ->
4949
Mix.Task.run("hello", ["--parser", "--unknown"])
@@ -52,7 +52,7 @@ defmodule Mix.TaskTest do
5252
Mix.Task.clear()
5353

5454
message =
55-
"Could not invoke task \"hello\": 1 error found!\n--int : Expected type integer, got \"foo\""
55+
~r"Could not invoke task \"hello\": 1 error found!\n--int : Expected type integer, got \"foo\""
5656

5757
assert_raise Mix.Error, message, fn ->
5858
Mix.Task.run("hello", ["--parser", "--int", "foo"])

0 commit comments

Comments
 (0)