github.com/danielpfeifer02/quic-go-prio-packs@v0.41.0-28/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 })