File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ test "valid ws handshake" {
281
281
try testing .expectEqualSlices (u8 , stm .written (), & http_request .* );
282
282
}
283
283
284
- test "read client_max_windwo_bits " {
284
+ test "read server_max_window_bits " {
285
285
const http_response = "HTTP/1.1 101 Switching Protocols" ++ crlf ++
286
286
"Server: AutobahnTestSuite/0.8.2-0.10.9" ++ crlf ++
287
287
"X-Powered-By: AutobahnPython/0.10.9" ++ crlf ++
@@ -301,16 +301,16 @@ test "read client_max_windwo_bits" {
301
301
cs .readOptions (& rsp );
302
302
try testing .expect (cs .options .per_message_deflate );
303
303
304
- var cmwb : ? []const u8 = null ;
304
+ var max_window_bits : ? []const u8 = null ;
305
305
for (rsp .headers ) | h | {
306
306
if (h .keyMatch ("sec-websocket-extensions" )) {
307
307
if (h .paramValue ("server_max_window_bits" )) | v | {
308
- cmwb = v ;
308
+ max_window_bits = v ;
309
309
}
310
310
}
311
311
}
312
- try testing .expect (cmwb != null );
313
- try testing .expectEqualSlices (u8 , cmwb .? , "12" );
312
+ try testing .expect (max_window_bits != null );
313
+ try testing .expectEqualSlices (u8 , max_window_bits .? , "12" );
314
314
try testing .expectEqual (cs .options .server_max_window_bits , 12 );
315
315
}
316
316
You can’t perform that action at this time.
0 commit comments