Skip to content

Commit f954764

Browse files
std.net: fix resolveIp6 tests for windows
Windows has a different max length for their interface names, leading to test cases not having the expected result
1 parent 315c07a commit f954764

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/std/net/test.zig

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ test "parse and render IPv6 addresses" {
7676
// TODO Make this test pass on other operating systems.
7777
if (builtin.os.tag == .linux or comptime builtin.os.tag.isDarwin() or builtin.os.tag == .windows) {
7878
try testing.expectError(error.Incomplete, net.Address.resolveIp6("ff01::fb%", 0));
79-
try testing.expectError(error.Overflow, net.Address.resolveIp6("ff01::fb%wlp3s0s0s0s0s0s0s0s0", 0));
80-
try testing.expectError(error.Overflow, net.Address.resolveIp6("ff01::fb%12345678901234", 0));
79+
try testing.expectError(error.Overflow, net.Address.resolveIp6("ff01::fb%wlp3s0s0s0s0s0s0s0s0s0s0s0s0s0s0", 0));
80+
try testing.expectError(error.Overflow, net.Address.resolveIp6("ff01::fb%12345678901234567890123456789012", 0));
8181
}
8282
}
8383

0 commit comments

Comments
 (0)