Skip to content

Commit

Permalink
Update hybi_test.go
Browse files Browse the repository at this point in the history
fixed test
  • Loading branch information
ruyi789 committed Aug 28, 2023
1 parent 7eb5380 commit 50bf7ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions websocket/hybi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Sec-WebSocket-Protocol: chat
config.handshakeData = map[string]string{
"key": "dGhlIHNhbXBsZSBub25jZQ==",
}
if err := hybiClientHandshake(&config, br, bw); err != nil {
if _, err := hybiClientHandshake(&config, br, bw); err != nil {
t.Fatal("handshake", err)
}
req, err := http.ReadRequest(bufio.NewReader(&b))
Expand Down Expand Up @@ -132,7 +132,7 @@ Sec-WebSocket-Protocol: chat
config.handshakeData = map[string]string{
"key": "dGhlIHNhbXBsZSBub25jZQ==",
}
err = hybiClientHandshake(config, br, bw)
_, err = hybiClientHandshake(config, br, bw)
if err != nil {
t.Errorf("handshake failed: %v", err)
}
Expand Down

0 comments on commit 50bf7ed

Please sign in to comment.