Skip to content

Commit c1b8e8d

Browse files
committed
Add test
1 parent 89a38f7 commit c1b8e8d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/bypass_test.exs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,4 +584,10 @@ defmodule BypassTest do
584584

585585
Mix.Config.persist(bypass: [test_framework: :ex_unit])
586586
end
587+
588+
test "Bypass.open/1 raises when cannot start child" do
589+
assert_raise RuntimeError, ~r/Failed to start bypass instance/, fn ->
590+
Bypass.open(:error)
591+
end
592+
end
587593
end

0 commit comments

Comments
 (0)