Skip to content

Commit 0f80c6c

Browse files
committed
Update test assertions to match on newer Elixirs
1 parent 2961d6b commit 0f80c6c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/websock_adapter/cowboy_adapter_test.exs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ defmodule WebSockAdapterCowboyAdapterTest do
277277
Process.sleep(100)
278278
end)
279279

280-
assert warnings =~ "%RuntimeError{message: \"boom\"}"
280+
assert warnings =~ "RuntimeError"
281+
assert warnings =~ "boom"
281282
end
282283
end
283284

@@ -567,7 +568,8 @@ defmodule WebSockAdapterCowboyAdapterTest do
567568
Process.sleep(100)
568569
end)
569570

570-
assert warnings =~ "%RuntimeError{message: \"boom\"}"
571+
assert warnings =~ "RuntimeError"
572+
assert warnings =~ "boom"
571573
end
572574
end
573575

@@ -894,7 +896,8 @@ defmodule WebSockAdapterCowboyAdapterTest do
894896
Process.sleep(100)
895897
end)
896898

897-
assert warnings =~ "%RuntimeError{message: \"boom\"}"
899+
assert warnings =~ "RuntimeError"
900+
assert warnings =~ "boom"
898901
end
899902
end
900903

@@ -1202,7 +1205,8 @@ defmodule WebSockAdapterCowboyAdapterTest do
12021205
Process.sleep(100)
12031206
end)
12041207

1205-
assert warnings =~ "%RuntimeError{message: \"boom\"}"
1208+
assert warnings =~ "RuntimeError"
1209+
assert warnings =~ "boom"
12061210
end
12071211
end
12081212

0 commit comments

Comments
 (0)