Skip to content

Commit

Permalink
Extend close/1 test
Browse files Browse the repository at this point in the history
  • Loading branch information
mickel8 committed Dec 15, 2023
1 parent 3bf50f8 commit 632251c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/ex_webrtc/peer_connection_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -534,5 +534,11 @@ defmodule ExWebRTC.PeerConnectionTest do
assert :ok == PeerConnection.close(pc)
assert false == Process.alive?(pc)
Enum.each(links, fn link -> assert false == Process.alive?(link) end)

{:ok, pc} = PeerConnection.start()
{:links, links} = Process.info(pc, :links)
assert true == Process.exit(pc, :shutdown)
assert false == Process.alive?(pc)
Enum.each(links, fn link -> assert false == Process.alive?(link) end)
end
end

0 comments on commit 632251c

Please sign in to comment.