Disable data channel throttle by default (#3281)

* Disable data channel throttle by default

* data race

* err type
This commit is contained in:
cnderrauber
2024-12-21 12:08:54 +08:00
committed by GitHub
parent 92ae45cf07
commit 8fa1127724
6 changed files with 44 additions and 34 deletions
@@ -32,7 +32,7 @@ func TestDataChannelWriter(t *testing.T) {
// bitrate below slow threshold(2000bytes/3sec), should drop by timeout
mockDC.SetNextWriteCompleteAt(t0.Add(3 * time.Second))
n, err = w.Write(buf[:1000])
require.ErrorIs(t, err, context.DeadlineExceeded, err)
require.ErrorIs(t, err, ErrDataDroppedBySlowReader, err)
require.Equal(t, 0, n)
}