mirror of
https://github.com/zigzap/zap.git
synced 2025-10-20 23:24:09 +00:00
fixed test's http client for latest zig std.http
This commit is contained in:
parent
4be0d13bbf
commit
a278842d78
1 changed files with 1 additions and 3 deletions
|
@ -147,7 +147,7 @@ fn makeRequest(a: std.mem.Allocator, url: []const u8, auth: ?ClientAuthReqHeader
|
|||
defer req.deinit();
|
||||
|
||||
try req.start();
|
||||
try req.do();
|
||||
try req.wait();
|
||||
// var br = std.io.bufferedReaderSize(std.crypto.tls.max_ciphertext_record_len, req.reader());
|
||||
// var buffer: [1024]u8 = undefined;
|
||||
// we know we won't receive a lot
|
||||
|
@ -619,6 +619,4 @@ test "BasicAuth UserPass authenticateRequest test-unauthorized" {
|
|||
});
|
||||
|
||||
try std.testing.expectEqualStrings("UNAUTHORIZED", received_response);
|
||||
|
||||
std.debug.print("\n\nFINISHED!", .{});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue