diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-02-14 09:40:08 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-14 09:40:08 -0500 |
| commit | 40b9db7cad6f876bb3e8fa32d7b32bbd4bc983ea (patch) | |
| tree | ac84f7fcca0d11becb7d459c151782202f3e01c0 /lib/std/net/test.zig | |
| parent | 9206f8a8cde9a8c1eafc606fe6b3f4129e233aef (diff) | |
| parent | 6ea6d5a4bdcf6f37c43857570522ee1308115de7 (diff) | |
| download | zig-40b9db7cad6f876bb3e8fa32d7b32bbd4bc983ea.tar.gz zig-40b9db7cad6f876bb3e8fa32d7b32bbd4bc983ea.zip | |
Merge pull request #4451 from daurnimator/use-testing.allocator
Migrate (more) tests from FixedBufferAllocator to testing.allocator
Diffstat (limited to 'lib/std/net/test.zig')
| -rw-r--r-- | lib/std/net/test.zig | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/std/net/test.zig b/lib/std/net/test.zig index 703a804bfb..45d8b1cffd 100644 --- a/lib/std/net/test.zig +++ b/lib/std/net/test.zig @@ -67,10 +67,8 @@ test "resolve DNS" { // DNS resolution not implemented on Windows yet. return error.SkipZigTest; } - var buf: [1000 * 10]u8 = undefined; - const a = &std.heap.FixedBufferAllocator.init(&buf).allocator; - const address_list = net.getAddressList(a, "example.com", 80) catch |err| switch (err) { + const address_list = net.getAddressList(testing.allocator, "example.com", 80) catch |err| switch (err) { // The tests are required to work even when there is no Internet connection, // so some of these errors we must accept and skip the test. error.UnknownHostName => return error.SkipZigTest, |
