Taking a bunch of go modernize suggestions. (#4194)
This is not all of it as it is not possible (or at least I do not know of a way) to get all suggestions for a repo/project. Did this via loop searching mainly and taking the modernize suggestions.
This commit is contained in:
@@ -59,7 +59,7 @@ func TestDataChannelWriter_NoSlowThreshold(t *testing.T) {
|
||||
func TestDataChannelWriter_Unreliable(t *testing.T) {
|
||||
mockDC := newMockLossyDataChannelWriter(8192)
|
||||
w := NewDataChannelWriterUnreliable(mockDC, mockDC, 100*time.Millisecond, 2000)
|
||||
for i := 0; i < 10; i++ {
|
||||
for range 10 {
|
||||
buf := make([]byte, 128)
|
||||
_, err := w.Write(buf)
|
||||
require.NoError(t, err)
|
||||
|
||||
Reference in New Issue
Block a user