forked from quic-go/quic-go
13 lines
217 B
Go
13 lines
217 B
Go
package congestion
|
|
|
|
import (
|
|
"testing"
|
|
"time"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestBandwidthFromDelta(t *testing.T) {
|
|
require.Equal(t, 1000*BytesPerSecond, BandwidthFromDelta(1, time.Millisecond))
|
|
}
|