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 12, 2024
1 parent 3aab035 commit 0805116
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 @@ -66,6 +66,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 0805116

Please sign in to comment.