From c213ad380f349dee1f65e6d9a9f7a8fa669b2af2 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 17 Nov 2023 22:46:15 -0500 Subject: chore: combine `TestCommandBuilder` with `DenoCmd` (#21248) --- cli/tests/integration/cert_tests.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cli/tests/integration/cert_tests.rs') diff --git a/cli/tests/integration/cert_tests.rs b/cli/tests/integration/cert_tests.rs index 4ccc38809..2b0807848 100644 --- a/cli/tests/integration/cert_tests.rs +++ b/cli/tests/integration/cert_tests.rs @@ -9,6 +9,7 @@ use std::io::Cursor; use std::io::Read; use std::sync::Arc; use test_util as util; +use util::testdata_path; use util::TestContext; itest_flaky!(cafile_url_imports { @@ -75,7 +76,7 @@ fn cafile_env_fetch() { let module_url = Url::parse("https://localhost:5545/cert/cafile_url_imports.ts").unwrap(); let context = TestContext::with_http_server(); - let cafile = context.testdata_path().join("tls/RootCA.pem"); + let cafile = testdata_path().join("tls/RootCA.pem"); context .new_command() @@ -91,7 +92,7 @@ fn cafile_fetch() { let module_url = Url::parse("http://localhost:4545/cert/cafile_url_imports.ts").unwrap(); let context = TestContext::with_http_server(); - let cafile = context.testdata_path().join("tls/RootCA.pem"); + let cafile = testdata_path().join("tls/RootCA.pem"); context .new_command() .args(format!("cache --quiet --cert {} {}", cafile, module_url,)) -- cgit v1.2.3