Commit 0d32f4acf7

Jonathan Marler <johnnymarler@gmail.com>
2020-05-31 19:58:50
enable dns test on windows
1 parent 58fb5b2
Changed files (1)
lib
std
lib/std/net/test.zig
@@ -68,7 +68,10 @@ test "parse and render IPv4 addresses" {
 }
 
 test "resolve DNS" {
-    if (builtin.os.tag == .windows or builtin.os.tag == .wasi) {
+    if (std.builtin.os.tag == .windows) {
+        _ = try std.os.windows.WSAStartup(2, 2);
+    }
+    if (builtin.os.tag == .wasi) {
         // DNS resolution not implemented on Windows yet.
         return error.SkipZigTest;
     }