Skip to content

Commit

Permalink
[IMPROVED] Fix linter issues (#1700)
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Piotrowski <[email protected]>
  • Loading branch information
piotrpio authored Aug 16, 2024
1 parent 0138e7a commit b61c7c5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion jetstream/test/jetstream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2057,7 +2057,7 @@ func TestJetStreamCleanupPublisher(t *testing.T) {
t.Fatalf("Did not receive completion signal")
}

// check that all ack futures are cancelled
// check that all ack futures are canceled
for _, ack := range acks {
select {
case err := <-ack.Err():
Expand Down
2 changes: 1 addition & 1 deletion test/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ func (d *checkPoolUpdatedDialer) Dial(network, address string) (net.Conn, error)

func TestServerPoolUpdatedWhenRouteGoesAway(t *testing.T) {
if err := serverVersionAtLeast(1, 0, 7); err != nil {
t.Skipf(err.Error())
t.Skip(err.Error())
}
s1Opts := test.DefaultTestOptions
s1Opts.Host = "127.0.0.1"
Expand Down
2 changes: 1 addition & 1 deletion test/js_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8387,7 +8387,7 @@ func TestJetStreamCleanupPublisher(t *testing.T) {
t.Fatalf("Did not receive completion signal")
}

// check that all ack futures are cancelled
// check that all ack futures are canceled
for _, ack := range acks {
select {
case err := <-ack.Err():
Expand Down
4 changes: 2 additions & 2 deletions ws.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ func (r *websocketReader) Read(p []byte) (int, error) {
case wsPingMessage, wsPongMessage, wsCloseMessage:
if rem > wsMaxControlPayloadSize {
return 0, fmt.Errorf(
fmt.Sprintf("control frame length bigger than maximum allowed of %v bytes",
wsMaxControlPayloadSize))
"control frame length bigger than maximum allowed of %v bytes",
wsMaxControlPayloadSize)
}
if compressed {
return 0, errors.New("control frame should not be compressed")
Expand Down

0 comments on commit b61c7c5

Please sign in to comment.