Skip to content

Commit 50bf7ed

Browse files
authored
Update hybi_test.go
fixed test
1 parent 7eb5380 commit 50bf7ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

websocket/hybi_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Sec-WebSocket-Protocol: chat
6868
config.handshakeData = map[string]string{
6969
"key": "dGhlIHNhbXBsZSBub25jZQ==",
7070
}
71-
if err := hybiClientHandshake(&config, br, bw); err != nil {
71+
if _, err := hybiClientHandshake(&config, br, bw); err != nil {
7272
t.Fatal("handshake", err)
7373
}
7474
req, err := http.ReadRequest(bufio.NewReader(&b))
@@ -132,7 +132,7 @@ Sec-WebSocket-Protocol: chat
132132
config.handshakeData = map[string]string{
133133
"key": "dGhlIHNhbXBsZSBub25jZQ==",
134134
}
135-
err = hybiClientHandshake(config, br, bw)
135+
_, err = hybiClientHandshake(config, br, bw)
136136
if err != nil {
137137
t.Errorf("handshake failed: %v", err)
138138
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy