Skip to content

Commit

Permalink
Added a unit test
Browse files Browse the repository at this point in the history
Relates to pion/sctp#218
  • Loading branch information
enobufs authored and daonb committed Nov 20, 2022
1 parent 8590383 commit d9d93e4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions settingengine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,3 +233,12 @@ func TestSetDTLSRetransmissionInterval(t *testing.T) {
t.Errorf("Failed to set DTLS retransmission interval")
}
}

func TestSetSCTPMaxReceiverBufferSize(t *testing.T) {
s := SettingEngine{}
assert.Equal(t, uint32(0), s.sctp.maxReceiveBufferSize)

expSize := uint32(4 * 1024 * 1024)
s.SetSCTPMaxReceiveBufferSize(expSize)
assert.Equal(t, expSize, s.sctp.maxReceiveBufferSize)
}

0 comments on commit d9d93e4

Please sign in to comment.