diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-03-19 09:21:53 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-18 23:21:53 +0000 |
commit | d366cf77e1b3da794f07b088233fc4f1e72c31ad (patch) | |
tree | e2b935e969ac1ba345c91d67a3b9e45e2a37da52 | |
parent | bd6938ac7070bbfb367f0a41b20a18bfa27e8ee8 (diff) |
chore(ext/buffer): cleanup use of deprecated `Deno.writeAllSync()` (#22875)
-rw-r--r-- | tests/unit/buffer_test.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/unit/buffer_test.ts b/tests/unit/buffer_test.ts index 9d7e51a95..06fbef350 100644 --- a/tests/unit/buffer_test.ts +++ b/tests/unit/buffer_test.ts @@ -11,6 +11,7 @@ import { assertRejects, assertThrows, } from "./test_util.ts"; +import { writeAllSync } from "../util/std/streams/write_all.ts"; const MAX_SIZE = 2 ** 32 - 2; // N controls how many iterations of certain checks are performed. @@ -405,7 +406,7 @@ Deno.test(function testBufferBytesArrayBufferLength() { const bufSize = 64 * 1024; const bytes = new TextEncoder().encode("a".repeat(bufSize)); const reader = new Deno.Buffer(); - Deno.writeAllSync(reader, bytes); + writeAllSync(reader, bytes); const writer = new Deno.Buffer(); writer.readFromSync(reader); @@ -421,7 +422,7 @@ Deno.test(function testBufferBytesCopyFalse() { const bufSize = 64 * 1024; const bytes = new TextEncoder().encode("a".repeat(bufSize)); const reader = new Deno.Buffer(); - Deno.writeAllSync(reader, bytes); + writeAllSync(reader, bytes); const writer = new Deno.Buffer(); writer.readFromSync(reader); @@ -436,7 +437,7 @@ Deno.test(function testBufferBytesCopyFalseGrowExactBytes() { const bufSize = 64 * 1024; const bytes = new TextEncoder().encode("a".repeat(bufSize)); const reader = new Deno.Buffer(); - Deno.writeAllSync(reader, bytes); + writeAllSync(reader, bytes); const writer = new Deno.Buffer(); writer.grow(bufSize); |