summaryrefslogtreecommitdiff
path: root/std/io/bufio_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/io/bufio_test.ts')
-rw-r--r--std/io/bufio_test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/std/io/bufio_test.ts b/std/io/bufio_test.ts
index 75bd7b40e..d925175f1 100644
--- a/std/io/bufio_test.ts
+++ b/std/io/bufio_test.ts
@@ -15,7 +15,7 @@ import {
BufReader,
BufWriter,
BufferFullError,
- UnexpectedEOFError,
+ PartialReadError,
readStringDelim,
readLines
} from "./bufio.ts";
@@ -369,9 +369,9 @@ Deno.test(async function bufReaderReadFull(): Promise<void> {
const buf = new Uint8Array(6);
try {
await bufr.readFull(buf);
- fail("readFull() should throw");
+ fail("readFull() should throw PartialReadError");
} catch (err) {
- assert(err instanceof UnexpectedEOFError);
+ assert(err instanceof PartialReadError);
assert(err.partial instanceof Uint8Array);
assertEquals(err.partial.length, 5);
assertEquals(dec.decode(buf.subarray(0, 5)), "World");