fix read of undefined in http tests

This commit is contained in:
xdBronch
2025-10-04 19:33:26 -04:00
committed by Alex Rønne Petersen
parent cfb5350ed4
commit 57f45cc87c

View File

@@ -1105,8 +1105,8 @@ fn createTestServer(S: type) !*TestServer {
const test_server = try std.testing.allocator.create(TestServer); const test_server = try std.testing.allocator.create(TestServer);
test_server.* = .{ test_server.* = .{
.net_server = try address.listen(.{ .reuse_address = true }), .net_server = try address.listen(.{ .reuse_address = true }),
.server_thread = try std.Thread.spawn(.{}, S.run, .{test_server}),
.shutting_down = false, .shutting_down = false,
.server_thread = try std.Thread.spawn(.{}, S.run, .{test_server}),
}; };
return test_server; return test_server;
} }