aboutsummaryrefslogtreecommitdiff
path: root/lib/std/net/test.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2023-03-05 12:39:32 +0000
committerAndrew Kelley <andrew@ziglang.org>2023-04-12 12:06:19 -0400
commitccf670c2b04ebeb9db43eb9f5c47c6cf03e4b1d0 (patch)
tree3f7899bf6231500782af185ffe701ee66793e226 /lib/std/net/test.zig
parent602029bb2fb78048e46136784e717b57b8de8f2c (diff)
downloadzig-ccf670c2b04ebeb9db43eb9f5c47c6cf03e4b1d0.tar.gz
zig-ccf670c2b04ebeb9db43eb9f5c47c6cf03e4b1d0.zip
Zir: implement explicit block_comptime instruction
Resolves: #7056
Diffstat (limited to 'lib/std/net/test.zig')
-rw-r--r--lib/std/net/test.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/net/test.zig b/lib/std/net/test.zig
index 30a63d9e3d..c4afc0e4e3 100644
--- a/lib/std/net/test.zig
+++ b/lib/std/net/test.zig
@@ -99,7 +99,7 @@ test "parse and render UNIX addresses" {
const fmt_addr = std.fmt.bufPrint(buffer[0..], "{}", .{addr}) catch unreachable;
try std.testing.expectEqualSlices(u8, "/tmp/testpath", fmt_addr);
- const too_long = [_]u8{'a'} ** (addr.un.path.len + 1);
+ const too_long = [_]u8{'a'} ** 200;
try testing.expectError(error.NameTooLong, net.Address.initUnix(too_long[0..]));
}