File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
- const std = @import ("std.zig" );
2
-
3
1
pub const Client = @import ("http/Client.zig" );
4
2
pub const Server = @import ("http/Server.zig" );
5
3
pub const protocol = @import ("http/protocol.zig" );
@@ -308,12 +306,17 @@ pub const Header = struct {
308
306
value : []const u8 ,
309
307
};
310
308
309
+ const builtin = @import ("builtin" );
310
+ const std = @import ("std.zig" );
311
+
311
312
test {
312
313
_ = Client ;
313
314
_ = Method ;
314
315
_ = Server ;
315
316
_ = Status ;
316
317
_ = HeadParser ;
317
318
_ = ChunkParser ;
318
- _ = @import ("http/test.zig" );
319
+ if (builtin .os .tag != .wasi ) {
320
+ _ = @import ("http/test.zig" );
321
+ }
319
322
}
Original file line number Diff line number Diff line change @@ -914,6 +914,7 @@ const TestServer = struct {
914
914
915
915
fn destroy (self : * @This ()) void {
916
916
self .server_thread .join ();
917
+ self .net_server .deinit ();
917
918
std .testing .allocator .destroy (self );
918
919
}
919
920
@@ -924,7 +925,6 @@ const TestServer = struct {
924
925
925
926
fn createTestServer (S : type ) ! * TestServer {
926
927
if (builtin .single_threaded ) return error .SkipZigTest ;
927
- if (builtin .os .tag == .wasi ) return error .SkipZigTest ;
928
928
if (builtin .zig_backend == .stage2_llvm and native_endian == .big ) {
929
929
// https://github.com/ziglang/zig/issues/13782
930
930
return error .SkipZigTest ;
You can’t perform that action at this time.
0 commit comments