summaryrefslogtreecommitdiff
path: root/cli/tests/unit
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-06-08 12:10:37 -0600
committerGitHub <noreply@github.com>2023-06-08 18:10:37 +0000
commitdb9482d6880739f4333ce80d9e40f856a0ebefa7 (patch)
tree709038e682254b365b54b54e329220e78e2e3d26 /cli/tests/unit
parent55f01508540e015563e5e54fd0652e81b347b9c1 (diff)
chore: Use relative paths for assert imports to avoid test flakes (#19427)
Tests occasionally fail if we get a bad gateway attempting to fetch the assertion module
Diffstat (limited to 'cli/tests/unit')
-rw-r--r--cli/tests/unit/opcall_test.ts2
-rw-r--r--cli/tests/unit/serve_test.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/cli/tests/unit/opcall_test.ts b/cli/tests/unit/opcall_test.ts
index 3b37f8c09..fb269fc32 100644
--- a/cli/tests/unit/opcall_test.ts
+++ b/cli/tests/unit/opcall_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
-import { assertEquals } from "https://deno.land/std@v0.42.0/testing/asserts.ts";
+import { assertEquals } from "../../../test_util/std/testing/asserts.ts";
import { assert, assertStringIncludes, unreachable } from "./test_util.ts";
Deno.test(async function sendAsyncStackTrace() {
diff --git a/cli/tests/unit/serve_test.ts b/cli/tests/unit/serve_test.ts
index 24ae7f666..3540bd542 100644
--- a/cli/tests/unit/serve_test.ts
+++ b/cli/tests/unit/serve_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
-import { assertMatch } from "https://deno.land/std@v0.42.0/testing/asserts.ts";
+import { assertMatch } from "../../../test_util/std/testing/asserts.ts";
import { Buffer, BufReader, BufWriter } from "../../../test_util/std/io/mod.ts";
import { TextProtoReader } from "../testdata/run/textproto.ts";
import {