mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
chore: update std
submodule to 0.221.0 (#23112)
This commit is contained in:
parent
b0c1bd82a8
commit
858abbe745
10 changed files with 15 additions and 15 deletions
2
tests/testdata/echo_server.ts
vendored
2
tests/testdata/echo_server.ts
vendored
|
@ -1,4 +1,4 @@
|
|||
import { copy } from "../../tests/util/std/streams/copy.ts";
|
||||
import { copy } from "../../tests/util/std/io/copy.ts";
|
||||
const addr = Deno.args[0] || "0.0.0.0:4544";
|
||||
const [hostname, port] = addr.split(":");
|
||||
const listener = Deno.listen({ hostname, port: Number(port) });
|
||||
|
|
2
tests/testdata/run/textproto.ts
vendored
2
tests/testdata/run/textproto.ts
vendored
|
@ -152,7 +152,7 @@ export class TextProtoReader {
|
|||
//TODO(SmashingQuasar): Kept skipSpace to preserve behavior but it should be looked into to check if it makes sense when this is used.
|
||||
|
||||
if (r !== null && this.skipSpace(r.line) !== 0) {
|
||||
line = concat(line, r.line);
|
||||
line = concat([line, r.line]);
|
||||
}
|
||||
} while (r !== null && r.more);
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ Deno.test(async function blobStream() {
|
|||
const read = async (): Promise<void> => {
|
||||
const { done, value } = await reader.read();
|
||||
if (!done && value) {
|
||||
bytes = concat(bytes, value);
|
||||
bytes = concat([bytes, value]);
|
||||
return read();
|
||||
}
|
||||
};
|
||||
|
|
|
@ -11,7 +11,7 @@ import {
|
|||
assertRejects,
|
||||
assertThrows,
|
||||
} from "./test_util.ts";
|
||||
import { writeAllSync } from "../util/std/streams/write_all.ts";
|
||||
import { writeAllSync } from "../util/std/io/write_all.ts";
|
||||
|
||||
const MAX_SIZE = 2 ** 32 - 2;
|
||||
// N controls how many iterations of certain checks are performed.
|
||||
|
|
|
@ -8,7 +8,7 @@ import {
|
|||
assertRejects,
|
||||
assertThrows,
|
||||
} from "./test_util.ts";
|
||||
import { copy } from "@std/streams/copy.ts";
|
||||
import { copy } from "@std/io/copy.ts";
|
||||
|
||||
// Note tests for Deno.FsFile.setRaw is in integration tests.
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@ import {
|
|||
assertThrows,
|
||||
} from "./test_util.ts";
|
||||
import { BufReader, BufWriter } from "@std/io/mod.ts";
|
||||
import { readAll } from "@std/streams/read_all.ts";
|
||||
import { writeAll } from "@std/streams/write_all.ts";
|
||||
import { readAll } from "@std/io/read_all.ts";
|
||||
import { writeAll } from "@std/io/write_all.ts";
|
||||
import { TextProtoReader } from "../testdata/run/textproto.ts";
|
||||
|
||||
const encoder = new TextEncoder();
|
||||
|
|
|
@ -7,7 +7,7 @@ import {
|
|||
assertThrows,
|
||||
fail,
|
||||
} from "@std/assert/mod.ts";
|
||||
import { fromFileUrl, relative, sep } from "@std/path/mod.ts";
|
||||
import { fromFileUrl, relative, SEPARATOR } from "@std/path/mod.ts";
|
||||
import * as workerThreads from "node:worker_threads";
|
||||
import { EventEmitter, once } from "node:events";
|
||||
|
||||
|
@ -320,7 +320,7 @@ Deno.test({
|
|||
name: "[node/worker_threads] Worker with relative path",
|
||||
async fn() {
|
||||
const worker = new workerThreads.Worker(
|
||||
`.${sep}` + relative(
|
||||
`.${SEPARATOR}` + relative(
|
||||
Deno.cwd(),
|
||||
fromFileUrl(new URL("./testdata/worker_threads.mjs", import.meta.url)),
|
||||
),
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit e0ef24091e87f84d44d495d432d611625b281249
|
||||
Subproject commit 7d419485c74bcdc4a03857dd4d427d4442b058f3
|
|
@ -34,7 +34,7 @@ import {
|
|||
} from "./runner/utils.ts";
|
||||
import { pooledMap } from "../util/std/async/pool.ts";
|
||||
import { blue, bold, green, red, yellow } from "../util/std/fmt/colors.ts";
|
||||
import { writeAll, writeAllSync } from "../util/std/streams/write_all.ts";
|
||||
import { writeAll, writeAllSync } from "../util/std/io/write_all.ts";
|
||||
import { saveExpectation } from "./runner/utils.ts";
|
||||
|
||||
class TestFilter {
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
/** This copies the test files according to the config file `tests/node_compat/config.jsonc` */
|
||||
|
||||
import { walk } from "@std/fs/walk.ts";
|
||||
import { sep } from "@std/path/mod.ts";
|
||||
import { SEPARATOR } from "@std/path/constants.ts";
|
||||
import { ensureFile } from "@std/fs/ensure_file.ts";
|
||||
import { writeAll } from "@std/streams/write_all.ts";
|
||||
import { writeAll } from "@std/io/write_all.ts";
|
||||
import { withoutAll } from "@std/collections/without_all.ts";
|
||||
import { relative } from "@std/path/posix.ts";
|
||||
import { relative } from "@std/path/posix/relative.ts";
|
||||
|
||||
import { config, ignoreList } from "../../tests/node_compat/common.ts";
|
||||
|
||||
|
@ -110,7 +110,7 @@ async function copyTests() {
|
|||
console.log("Copying test files...");
|
||||
|
||||
for await (const entry of walk(VENDORED_NODE_TEST, { skip: ignoreList })) {
|
||||
const fragments = entry.path.split(sep);
|
||||
const fragments = entry.path.split(SEPARATOR);
|
||||
// suite is the directory name after test/. For example, if the file is
|
||||
// "node_compat/node/test/fixtures/policy/main.mjs"
|
||||
// then suite is "fixtures/policy"
|
||||
|
|
Loading…
Reference in a new issue