mirror of
https://github.com/denoland/deno.git
synced 2025-02-15 18:16:12 -05:00
chore: update std
submodule to 0.221.0 (#23112)
This commit is contained in:
parent
c793649b9e
commit
7c732cd95f
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 addr = Deno.args[0] || "0.0.0.0:4544";
|
||||||
const [hostname, port] = addr.split(":");
|
const [hostname, port] = addr.split(":");
|
||||||
const listener = Deno.listen({ hostname, port: Number(port) });
|
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.
|
//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) {
|
if (r !== null && this.skipSpace(r.line) !== 0) {
|
||||||
line = concat(line, r.line);
|
line = concat([line, r.line]);
|
||||||
}
|
}
|
||||||
} while (r !== null && r.more);
|
} while (r !== null && r.more);
|
||||||
|
|
||||||
|
|
|
@ -85,7 +85,7 @@ Deno.test(async function blobStream() {
|
||||||
const read = async (): Promise<void> => {
|
const read = async (): Promise<void> => {
|
||||||
const { done, value } = await reader.read();
|
const { done, value } = await reader.read();
|
||||||
if (!done && value) {
|
if (!done && value) {
|
||||||
bytes = concat(bytes, value);
|
bytes = concat([bytes, value]);
|
||||||
return read();
|
return read();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -11,7 +11,7 @@ import {
|
||||||
assertRejects,
|
assertRejects,
|
||||||
assertThrows,
|
assertThrows,
|
||||||
} from "./test_util.ts";
|
} 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;
|
const MAX_SIZE = 2 ** 32 - 2;
|
||||||
// N controls how many iterations of certain checks are performed.
|
// N controls how many iterations of certain checks are performed.
|
||||||
|
|
|
@ -8,7 +8,7 @@ import {
|
||||||
assertRejects,
|
assertRejects,
|
||||||
assertThrows,
|
assertThrows,
|
||||||
} from "./test_util.ts";
|
} 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.
|
// Note tests for Deno.FsFile.setRaw is in integration tests.
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,8 @@ import {
|
||||||
assertThrows,
|
assertThrows,
|
||||||
} from "./test_util.ts";
|
} from "./test_util.ts";
|
||||||
import { BufReader, BufWriter } from "@std/io/mod.ts";
|
import { BufReader, BufWriter } from "@std/io/mod.ts";
|
||||||
import { readAll } from "@std/streams/read_all.ts";
|
import { readAll } from "@std/io/read_all.ts";
|
||||||
import { writeAll } from "@std/streams/write_all.ts";
|
import { writeAll } from "@std/io/write_all.ts";
|
||||||
import { TextProtoReader } from "../testdata/run/textproto.ts";
|
import { TextProtoReader } from "../testdata/run/textproto.ts";
|
||||||
|
|
||||||
const encoder = new TextEncoder();
|
const encoder = new TextEncoder();
|
||||||
|
|
|
@ -7,7 +7,7 @@ import {
|
||||||
assertThrows,
|
assertThrows,
|
||||||
fail,
|
fail,
|
||||||
} from "@std/assert/mod.ts";
|
} 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 * as workerThreads from "node:worker_threads";
|
||||||
import { EventEmitter, once } from "node:events";
|
import { EventEmitter, once } from "node:events";
|
||||||
|
|
||||||
|
@ -320,7 +320,7 @@ Deno.test({
|
||||||
name: "[node/worker_threads] Worker with relative path",
|
name: "[node/worker_threads] Worker with relative path",
|
||||||
async fn() {
|
async fn() {
|
||||||
const worker = new workerThreads.Worker(
|
const worker = new workerThreads.Worker(
|
||||||
`.${sep}` + relative(
|
`.${SEPARATOR}` + relative(
|
||||||
Deno.cwd(),
|
Deno.cwd(),
|
||||||
fromFileUrl(new URL("./testdata/worker_threads.mjs", import.meta.url)),
|
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";
|
} from "./runner/utils.ts";
|
||||||
import { pooledMap } from "../util/std/async/pool.ts";
|
import { pooledMap } from "../util/std/async/pool.ts";
|
||||||
import { blue, bold, green, red, yellow } from "../util/std/fmt/colors.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";
|
import { saveExpectation } from "./runner/utils.ts";
|
||||||
|
|
||||||
class TestFilter {
|
class TestFilter {
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
/** This copies the test files according to the config file `tests/node_compat/config.jsonc` */
|
/** This copies the test files according to the config file `tests/node_compat/config.jsonc` */
|
||||||
|
|
||||||
import { walk } from "@std/fs/walk.ts";
|
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 { 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 { 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";
|
import { config, ignoreList } from "../../tests/node_compat/common.ts";
|
||||||
|
|
||||||
|
@ -110,7 +110,7 @@ async function copyTests() {
|
||||||
console.log("Copying test files...");
|
console.log("Copying test files...");
|
||||||
|
|
||||||
for await (const entry of walk(VENDORED_NODE_TEST, { skip: ignoreList })) {
|
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
|
// suite is the directory name after test/. For example, if the file is
|
||||||
// "node_compat/node/test/fixtures/policy/main.mjs"
|
// "node_compat/node/test/fixtures/policy/main.mjs"
|
||||||
// then suite is "fixtures/policy"
|
// then suite is "fixtures/policy"
|
||||||
|
|
Loading…
Add table
Reference in a new issue