Skip to content

Commit 632251c

Browse files
committed
Extend close/1 test
1 parent 3bf50f8 commit 632251c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/ex_webrtc/peer_connection_test.exs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,5 +534,11 @@ defmodule ExWebRTC.PeerConnectionTest do
534534
assert :ok == PeerConnection.close(pc)
535535
assert false == Process.alive?(pc)
536536
Enum.each(links, fn link -> assert false == Process.alive?(link) end)
537+
538+
{:ok, pc} = PeerConnection.start()
539+
{:links, links} = Process.info(pc, :links)
540+
assert true == Process.exit(pc, :shutdown)
541+
assert false == Process.alive?(pc)
542+
Enum.each(links, fn link -> assert false == Process.alive?(link) end)
537543
end
538544
end

0 commit comments

Comments
 (0)