@@ -190,7 +190,7 @@ Sec-WebSocket-Version: 13
190190 t .Errorf ("handshake failed: %v" , err )
191191 }
192192 if code != http .StatusSwitchingProtocols {
193- t .Errorf ("status expected %q but got %q " , http .StatusSwitchingProtocols , code )
193+ t .Errorf ("status expected %d but got %d " , http .StatusSwitchingProtocols , code )
194194 }
195195 expectedProtocols := []string {"chat" , "superchat" }
196196 if fmt .Sprintf ("%v" , config .Protocol ) != fmt .Sprintf ("%v" , expectedProtocols ) {
@@ -239,10 +239,10 @@ Sec-WebSocket-Version: 13
239239 t .Errorf ("handshake failed: %v" , err )
240240 }
241241 if code != http .StatusSwitchingProtocols {
242- t .Errorf ("status expected %q but got %q " , http .StatusSwitchingProtocols , code )
242+ t .Errorf ("status expected %d but got %d " , http .StatusSwitchingProtocols , code )
243243 }
244244 if len (config .Protocol ) != 0 {
245- t .Errorf ("len(config.Protocol) expected 0, but got %q " , len (config .Protocol ))
245+ t .Errorf ("len(config.Protocol) expected 0, but got %d " , len (config .Protocol ))
246246 }
247247 b := bytes .NewBuffer ([]byte {})
248248 bw := bufio .NewWriter (b )
@@ -285,7 +285,7 @@ Sec-WebSocket-Version: 9
285285 t .Errorf ("handshake expected err %q but got %q" , ErrBadWebSocketVersion , err )
286286 }
287287 if code != http .StatusBadRequest {
288- t .Errorf ("status expected %q but got %q " , http .StatusBadRequest , code )
288+ t .Errorf ("status expected %d but got %d " , http .StatusBadRequest , code )
289289 }
290290}
291291
@@ -583,7 +583,7 @@ Sec-WebSocket-Version: 13
583583 t .Errorf ("handshake failed: %v" , err )
584584 }
585585 if code != http .StatusSwitchingProtocols {
586- t .Errorf ("status expected %q but got %q " , http .StatusSwitchingProtocols , code )
586+ t .Errorf ("status expected %d but got %d " , http .StatusSwitchingProtocols , code )
587587 }
588588 b := bytes .NewBuffer ([]byte {})
589589 bw := bufio .NewWriter (b )
0 commit comments