From 50bf7eddf81892677a0073f5561a9d6008a27b12 Mon Sep 17 00:00:00 2001 From: ruyi789 <69212525+ruyi789@users.noreply.github.com> Date: Mon, 28 Aug 2023 23:48:58 +0800 Subject: [PATCH] Update hybi_test.go fixed test --- websocket/hybi_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/websocket/hybi_test.go b/websocket/hybi_test.go index 9504aa2d30..f3402cdabc 100644 --- a/websocket/hybi_test.go +++ b/websocket/hybi_test.go @@ -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)) @@ -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) }