From db9482d6880739f4333ce80d9e40f856a0ebefa7 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Thu, 8 Jun 2023 12:10:37 -0600 Subject: 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 --- cli/tests/unit/opcall_test.ts | 2 +- cli/tests/unit/serve_test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/tests/unit') 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 { -- cgit v1.2.3