fix some typos in documentation and tests

This commit is contained in:
Marten Seemann
2022-01-14 11:21:26 +04:00
parent f34eddae41
commit a98e60c28c
5 changed files with 8 additions and 8 deletions

View File

@@ -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,

View File

@@ -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))

View File

@@ -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")
}

View File

@@ -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