mirror of
https://github.com/pion/webrtc.git
synced 2025-09-27 03:25:58 +08:00
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user