Skip to content

Commit

Permalink
Fix some typos in comments
Browse files Browse the repository at this point in the history
Signed-off-by: eveneast <[email protected]>
  • Loading branch information
eveneast committed Apr 15, 2024
1 parent d80b603 commit 2e79181
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ Toxiproxy for Windows is available for download at https://github.com/Shopify/to
**Docker**

Toxiproxy is available on [Github container registry](https://github.com/Shopify/toxiproxy/pkgs/container/toxiproxy).
Old versions `<= 2.1.4` are available on on [Docker Hub](https://hub.docker.com/r/shopify/toxiproxy/).
Old versions `<= 2.1.4` are available on [Docker Hub](https://hub.docker.com/r/shopify/toxiproxy/).

```bash
$ docker pull ghcr.io/shopify/toxiproxy
Expand Down
2 changes: 1 addition & 1 deletion link.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func (link *ToxicLink) RemoveToxic(ctx context.Context, toxic *toxics.ToxicWrapp
}(link.stubs[toxic_index-1], stop)

// Unblock the previous toxic if it is trying to flush
// If the previous toxic is closed, continue flusing until we reach the end.
// If the previous toxic is closed, continue flushing until we reach the end.
interrupted := false
stopped := false
for !interrupted {
Expand Down
2 changes: 1 addition & 1 deletion stream/io_chan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func TestStream_ReadInterrupt(t *testing.T) {
}

if n != 0 {
t.Fatalf("Read still returned data after interrput: %d bytes", n)
t.Fatalf("Read still returned data after interrupt: %d bytes", n)
}

// Try writing again after the channel was interrupted
Expand Down
4 changes: 2 additions & 2 deletions toxics/timeout_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ func TestTimeoutToxicClosesConnectionOnRemove(t *testing.T) {
buf := make([]byte, 1)
_, err := conn.Read(buf)
if err != io.EOF {
t.Fatal("expected EOF from closed connetion")
t.Fatal("expected EOF from closed connection")
}
_, err = serverConn.Read(buf)
if err != io.EOF {
t.Fatal("expected EOF from closed server connetion")
t.Fatal("expected EOF from closed server connection")
}
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion toxics/toxic.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/Shopify/toxiproxy/v2/stream"
)

// A Toxic is something that can be attatched to a link to modify the way
// A Toxic is something that can be attached to a link to modify the way
// data can be passed through (for example, by adding latency)
//
// Toxic
Expand Down

0 comments on commit 2e79181

Please sign in to comment.