forked from quic-go/quic-go
internalize ackhandler and congestion
This commit is contained in:
14
internal/congestion/bandwidth_test.go
Normal file
14
internal/congestion/bandwidth_test.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package congestion
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
. "github.com/onsi/ginkgo"
|
||||
. "github.com/onsi/gomega"
|
||||
)
|
||||
|
||||
var _ = Describe("Bandwidth", func() {
|
||||
It("converts from time delta", func() {
|
||||
Expect(BandwidthFromDelta(1, time.Millisecond)).To(Equal(1000 * BytesPerSecond))
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user