forked from quic-go/quic-go
16 lines
342 B
Go
16 lines
342 B
Go
package congestion_test
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/lucas-clemente/quic-go/congestion"
|
|
. "github.com/onsi/ginkgo"
|
|
. "github.com/onsi/gomega"
|
|
)
|
|
|
|
var _ = Describe("Bandwidth", func() {
|
|
It("converts from time delta", func() {
|
|
Expect(congestion.BandwidthFromDelta(1, time.Millisecond)).To(Equal(1000 * congestion.BytesPerSecond))
|
|
})
|
|
})
|