Skip to content

Commit 0d32f4a

Browse files
committed
enable dns test on windows
1 parent 58fb5b2 commit 0d32f4a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/std/net/test.zig

+4-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ test "parse and render IPv4 addresses" {
6868
}
6969

7070
test "resolve DNS" {
71-
if (builtin.os.tag == .windows or builtin.os.tag == .wasi) {
71+
if (std.builtin.os.tag == .windows) {
72+
_ = try std.os.windows.WSAStartup(2, 2);
73+
}
74+
if (builtin.os.tag == .wasi) {
7275
// DNS resolution not implemented on Windows yet.
7376
return error.SkipZigTest;
7477
}

0 commit comments

Comments
 (0)