forked from quic-go/quic-go
fix some typos in documentation and tests
This commit is contained in:
@@ -19,7 +19,7 @@ type connectionFlowController struct {
|
||||
var _ ConnectionFlowController = &connectionFlowController{}
|
||||
|
||||
// NewConnectionFlowController gets a new flow controller for the connection
|
||||
// It is created before we receive the peer's transport paramenters, thus it starts with a sendWindow of 0.
|
||||
// It is created before we receive the peer's transport parameters, thus it starts with a sendWindow of 0.
|
||||
func NewConnectionFlowController(
|
||||
receiveWindow protocol.ByteCount,
|
||||
maxReceiveWindow protocol.ByteCount,
|
||||
|
||||
@@ -77,7 +77,7 @@ var _ = Describe("Connection Flow controller", func() {
|
||||
Expect(offset).To(Equal(oldOffset + dataRead + 60))
|
||||
})
|
||||
|
||||
It("autotunes the window", func() {
|
||||
It("auto-tunes the window", func() {
|
||||
oldOffset := controller.bytesRead
|
||||
oldWindowSize := controller.receiveWindowSize
|
||||
rtt := scaleDuration(20 * time.Millisecond)
|
||||
@@ -118,7 +118,7 @@ var _ = Describe("Connection Flow controller", func() {
|
||||
Expect(controller.receiveWindowSize).To(Equal(oldWindowSize))
|
||||
})
|
||||
|
||||
It("doens't increase the window size beyond the maxReceiveWindowSize", func() {
|
||||
It("doesn't increase the window size beyond the maxReceiveWindowSize", func() {
|
||||
max := controller.maxReceiveWindowSize
|
||||
controller.EnsureMinimumWindowSize(2 * max)
|
||||
Expect(controller.receiveWindowSize).To(Equal(max))
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
. "github.com/onsi/gomega"
|
||||
)
|
||||
|
||||
func TestCrypto(t *testing.T) {
|
||||
func TestFlowControl(t *testing.T) {
|
||||
RegisterFailHandler(Fail)
|
||||
RunSpecs(t, "FlowControl Suite")
|
||||
}
|
||||
|
||||
@@ -189,7 +189,7 @@ var _ = Describe("Stream Flow controller", func() {
|
||||
Expect(queuedWindowUpdate).To(BeFalse())
|
||||
})
|
||||
|
||||
It("tells the connection flow controller when the window was autotuned", func() {
|
||||
It("tells the connection flow controller when the window was auto-tuned", func() {
|
||||
oldOffset := controller.bytesRead
|
||||
setRtt(scaleDuration(20 * time.Millisecond))
|
||||
controller.epochStartOffset = oldOffset
|
||||
|
||||
Reference in New Issue
Block a user