summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/run
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-11-22 05:13:56 +0100
committerGitHub <noreply@github.com>2023-11-22 04:13:56 +0000
commit0ffcb46e0f60110c07e21151db6066f5a1b5f710 (patch)
tree235a216a892edc9610d0f467e0662eeb535fd900 /cli/tests/testdata/run
parent64997cce6a9e83dcc57f5be9056eca16708db096 (diff)
Revert "chore: update to `std@0.207.0` (#21284)" (#21295)
This reverts commit 20aa0796e6ff7651cdfce4d0292bdb11da5dfe2e. `main` has been failing consistenly on `kv_undelivered_test` and `serve_test` after this upgrade.
Diffstat (limited to 'cli/tests/testdata/run')
-rw-r--r--cli/tests/testdata/run/045_proxy_test.ts2
-rw-r--r--cli/tests/testdata/run/import_meta/main.ts2
-rw-r--r--cli/tests/testdata/run/onload/imported.ts2
-rw-r--r--cli/tests/testdata/run/onload/main.ts2
-rw-r--r--cli/tests/testdata/run/onload/nest_imported.ts2
-rw-r--r--cli/tests/testdata/run/tls_connecttls.js5
-rw-r--r--cli/tests/testdata/run/tls_starttls.js5
-rw-r--r--cli/tests/testdata/run/websocket_server_idletimeout.ts2
-rw-r--r--cli/tests/testdata/run/websocket_test.ts2
-rw-r--r--cli/tests/testdata/run/websocketstream_test.ts2
10 files changed, 16 insertions, 10 deletions
diff --git a/cli/tests/testdata/run/045_proxy_test.ts b/cli/tests/testdata/run/045_proxy_test.ts
index eacce1130..8ca733a94 100644
--- a/cli/tests/testdata/run/045_proxy_test.ts
+++ b/cli/tests/testdata/run/045_proxy_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { Server } from "../../../../test_util/std/http/server.ts";
-import { assertEquals } from "../../../../test_util/std/assert/mod.ts";
+import { assertEquals } from "../../../../test_util/std/testing/asserts.ts";
const addr = Deno.args[1] || "localhost:4555";
diff --git a/cli/tests/testdata/run/import_meta/main.ts b/cli/tests/testdata/run/import_meta/main.ts
index b6d9c506e..0d7cb96da 100644
--- a/cli/tests/testdata/run/import_meta/main.ts
+++ b/cli/tests/testdata/run/import_meta/main.ts
@@ -1,4 +1,4 @@
-import { assertThrows } from "../../../../../test_util/std/assert/mod.ts";
+import { assertThrows } from "../../../../../test_util/std/testing/asserts.ts";
console.log("main", import.meta.url, import.meta.main);
diff --git a/cli/tests/testdata/run/onload/imported.ts b/cli/tests/testdata/run/onload/imported.ts
index 971ddaea3..f4157b86f 100644
--- a/cli/tests/testdata/run/onload/imported.ts
+++ b/cli/tests/testdata/run/onload/imported.ts
@@ -1,5 +1,5 @@
// deno-lint-ignore-file no-window-prefix
-import { assert } from "../../../../../test_util/std/assert/mod.ts";
+import { assert } from "../../../../../test_util/std/testing/asserts.ts";
import "./nest_imported.ts";
const handler = (e: Event) => {
diff --git a/cli/tests/testdata/run/onload/main.ts b/cli/tests/testdata/run/onload/main.ts
index 191c4d872..126627e34 100644
--- a/cli/tests/testdata/run/onload/main.ts
+++ b/cli/tests/testdata/run/onload/main.ts
@@ -1,5 +1,5 @@
// deno-lint-ignore-file no-window-prefix no-prototype-builtins
-import { assert } from "../../../../../test_util/std/assert/mod.ts";
+import { assert } from "../../../../../test_util/std/testing/asserts.ts";
import "./imported.ts";
assert(window.hasOwnProperty("onload"));
diff --git a/cli/tests/testdata/run/onload/nest_imported.ts b/cli/tests/testdata/run/onload/nest_imported.ts
index e89699854..a942d2729 100644
--- a/cli/tests/testdata/run/onload/nest_imported.ts
+++ b/cli/tests/testdata/run/onload/nest_imported.ts
@@ -1,5 +1,5 @@
// deno-lint-ignore-file no-window-prefix
-import { assert } from "../../../../../test_util/std/assert/mod.ts";
+import { assert } from "../../../../../test_util/std/testing/asserts.ts";
const handler = (e: Event) => {
assert(e.type === "beforeunload" ? e.cancelable : !e.cancelable);
diff --git a/cli/tests/testdata/run/tls_connecttls.js b/cli/tests/testdata/run/tls_connecttls.js
index 1fcf6640a..7c03856cb 100644
--- a/cli/tests/testdata/run/tls_connecttls.js
+++ b/cli/tests/testdata/run/tls_connecttls.js
@@ -1,5 +1,8 @@
import { deferred } from "../../../../test_util/std/async/deferred.ts";
-import { assert, assertEquals } from "../../../../test_util/std/assert/mod.ts";
+import {
+ assert,
+ assertEquals,
+} from "../../../../test_util/std/testing/asserts.ts";
import { BufReader, BufWriter } from "../../../../test_util/std/io/mod.ts";
import { TextProtoReader } from "./textproto.ts";
diff --git a/cli/tests/testdata/run/tls_starttls.js b/cli/tests/testdata/run/tls_starttls.js
index 34b97a4cb..ecf344211 100644
--- a/cli/tests/testdata/run/tls_starttls.js
+++ b/cli/tests/testdata/run/tls_starttls.js
@@ -1,5 +1,8 @@
import { deferred } from "../../../../test_util/std/async/deferred.ts";
-import { assert, assertEquals } from "../../../../test_util/std/assert/mod.ts";
+import {
+ assert,
+ assertEquals,
+} from "../../../../test_util/std/testing/asserts.ts";
import { BufReader } from "../../../../test_util/std/io/buf_reader.ts";
import { BufWriter } from "../../../../test_util/std/io/buf_writer.ts";
import { TextProtoReader } from "./textproto.ts";
diff --git a/cli/tests/testdata/run/websocket_server_idletimeout.ts b/cli/tests/testdata/run/websocket_server_idletimeout.ts
index e7bfd7337..211b5f6ea 100644
--- a/cli/tests/testdata/run/websocket_server_idletimeout.ts
+++ b/cli/tests/testdata/run/websocket_server_idletimeout.ts
@@ -1,4 +1,4 @@
-import { assertEquals } from "../../../../test_util/std/assert/mod.ts";
+import { assertEquals } from "../../../../test_util/std/testing/asserts.ts";
import { deferred } from "../../../../test_util/std/async/deferred.ts";
const errorDeferred = deferred();
diff --git a/cli/tests/testdata/run/websocket_test.ts b/cli/tests/testdata/run/websocket_test.ts
index e87bcc495..74a369d55 100644
--- a/cli/tests/testdata/run/websocket_test.ts
+++ b/cli/tests/testdata/run/websocket_test.ts
@@ -4,7 +4,7 @@ import {
assertEquals,
assertThrows,
fail,
-} from "../../../../test_util/std/assert/mod.ts";
+} from "../../../../test_util/std/testing/asserts.ts";
import { deferred } from "../../../../test_util/std/async/deferred.ts";
Deno.test("invalid scheme", () => {
diff --git a/cli/tests/testdata/run/websocketstream_test.ts b/cli/tests/testdata/run/websocketstream_test.ts
index f34eaf0ab..82dd59a20 100644
--- a/cli/tests/testdata/run/websocketstream_test.ts
+++ b/cli/tests/testdata/run/websocketstream_test.ts
@@ -7,7 +7,7 @@ import {
assertRejects,
assertThrows,
unreachable,
-} from "../../../../test_util/std/assert/mod.ts";
+} from "../../../../test_util/std/testing/asserts.ts";
Deno.test("fragment", () => {
assertThrows(() => new WebSocketStream("ws://localhost:4242/#"));