github.com/metacubex/quic-go@v0.44.1-0.20240520163451-20b689a59136/internal/congestion/bandwidth_test.go (about) 1 package congestion 2 3 import ( 4 "time" 5 6 . "github.com/onsi/ginkgo/v2" 7 . "github.com/onsi/gomega" 8 ) 9 10 var _ = Describe("Bandwidth", func() { 11 It("converts from time delta", func() { 12 Expect(BandwidthFromDelta(1, time.Millisecond)).To(Equal(1000 * BytesPerSecond)) 13 }) 14 })