std.http: skip tests on wasi and single-threaded
WASI does not support networking, and these tests require threads.
This commit is contained in:
@@ -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(.{
|
||||
|
||||
Reference in New Issue
Block a user