Skip to content

Commit 092705f

Browse files
committed
temp reverts
1 parent e9a7752 commit 092705f

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

tests/unit/blob_test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Deno.test(async function blobStream() {
8585
const read = async (): Promise<void> => {
8686
const { done, value } = await reader.read();
8787
if (!done && value) {
88-
bytes = concat([bytes, value]) as Uint8Array<ArrayBuffer>;
88+
bytes = concat([bytes, value]);
8989
return read();
9090
}
9191
};

tests/unit/test_util.ts

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export {
2222
unreachable,
2323
} from "@std/assert";
2424
export { delay } from "@std/async/delay";
25+
export { readLines } from "@std/io/read-lines";
2526
export { parseArgs } from "@std/cli/parse-args";
2627

2728
export function pathToAbsoluteFileUrl(path: string): URL {

tests/unit/tls_test.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
assertStrictEquals,
88
assertThrows,
99
} from "./test_util.ts";
10-
import { Buffer } from "@std/streams/buffer";
10+
import { BufReader, BufWriter } from "@std/io";
1111
import { readAll } from "@std/io/read-all";
1212
import { writeAll } from "@std/io/write-all";
1313
import { TextProtoReader } from "../testdata/run/textproto.ts";
@@ -114,11 +114,12 @@ Deno.test(
114114
);
115115

116116
const conn = await Deno.connectTls({ hostname, port, caCerts });
117-
const buffer = new Buffer(conn);
118-
const w = buffer.writable.getWriter();
119-
const r = buffer.readable.getWriter();
117+
const w = new BufWriter(conn);
118+
const r = new BufReader(conn);
120119
const body = `GET / HTTP/1.1\r\nHost: ${hostname}:${port}\r\n\r\n`;
121-
await w.write(encoder.encode(body));
120+
const writeResult = await w.write(encoder.encode(body));
121+
assertEquals(body.length, writeResult);
122+
await w.flush();
122123
const tpr = new TextProtoReader(r);
123124
const statusLine = await tpr.readLine();
124125
assert(statusLine !== null, `line must be read: ${String(statusLine)}`);

tests/util/std

Submodule std updated from c5d7930 to ace6a0e

0 commit comments

Comments
 (0)