enable dns test on windows

This commit is contained in:
Jonathan Marler 2020-05-31 11:58:50 -06:00
parent 58fb5b29b6
commit 0d32f4acf7

View File

@ -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;
}