route/vendor/github.com/lucas-clemente/quic-go/congestion/bandwidth_test.go

15 lines
267 B
Go
Raw Normal View History

2017-12-12 02:51:45 +00:00
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))
})
})