github.com/tumi8/quic-go@v0.37.4-tum/noninternal/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  })