Skip to content

Commit

Permalink
Fix SCTPTransport OnClose test
Browse files Browse the repository at this point in the history
  • Loading branch information
sukunrt committed Aug 13, 2024
1 parent b6f806a commit cef1db8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sctptransport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ func TestSCTPTransportOnClose(t *testing.T) {
offerPC, answerPC, err := newPair()
require.NoError(t, err)

defer closePairNow(t, offerPC, answerPC)

answerPC.OnDataChannel(func(dc *DataChannel) {
dc.OnMessage(func(_ DataChannelMessage) {
if err1 := dc.Send([]byte("hello")); err1 != nil {
Expand Down

0 comments on commit cef1db8

Please sign in to comment.