Skip to content

Commit 2d66654

Browse files
committed
appease linter
1 parent 17fb2d9 commit 2d66654

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

autobahn_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func TestAutobahn(t *testing.T) {
9797
http.Error(w, err.Error(), http.StatusBadRequest)
9898
return
9999
}
100-
ws.Serve(r.Context(), websocket.EchoHandler)
100+
_ = ws.Serve(r.Context(), websocket.EchoHandler)
101101
}))
102102
defer srv.Close()
103103
targetURL = srv.URL

websocket_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ func TestNetworkErrors(t *testing.T) {
683683
}
684684

685685
ws := websocket.New(fakeConn, clientKey, websocket.ServerMode, websocket.Options{})
686-
ws.Serve(r.Context(), websocket.EchoHandler)
686+
_ = ws.Serve(r.Context(), websocket.EchoHandler)
687687
}))
688688

689689
// We write a frame, but the server's attempt to write the echo
@@ -705,7 +705,7 @@ func TestServeLoop(t *testing.T) {
705705
conn := setupRawConnWithHandler(t, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
706706
ws, err := websocket.Accept(w, r, websocket.Options{})
707707
assert.NilError(t, err)
708-
ws.Serve(r.Context(), func(ctx context.Context, msg *websocket.Message) (*websocket.Message, error) {
708+
_ = ws.Serve(r.Context(), func(ctx context.Context, msg *websocket.Message) (*websocket.Message, error) {
709709
if bytes.Equal(msg.Payload, []byte("fail")) {
710710
return nil, wantErr
711711
}

0 commit comments

Comments
 (0)