std.http: skip tests on wasi and single-threaded

WASI does not support networking, and these tests require threads.
This commit is contained in:
Andrew Kelley 2024-02-17 11:46:37 -07:00
parent 651aa5e8e4
commit 6de8748b05

View File

@ -1,7 +1,11 @@
const builtin = @import("builtin");
const std = @import("std");
const testing = std.testing;
test "trailers" {
if (builtin.single_threaded) return error.SkipZigTest;
if (builtin.os.tag == .wasi) return error.SkipZigTest;
const gpa = testing.allocator;
var http_server = std.http.Server.init(.{