From 6de8748b057d99d6003e1d4a5f7fb027776522ad Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 17 Feb 2024 11:46:37 -0700 Subject: [PATCH] std.http: skip tests on wasi and single-threaded WASI does not support networking, and these tests require threads. --- lib/std/http/test.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/std/http/test.zig b/lib/std/http/test.zig index 3b3a008922..0254e5cc2c 100644 --- a/lib/std/http/test.zig +++ b/lib/std/http/test.zig @@ -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(.{