summaryrefslogtreecommitdiff
path: root/cli/tests/integration/cert_tests.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-11-17 22:46:15 -0500
committerGitHub <noreply@github.com>2023-11-17 22:46:15 -0500
commitc213ad380f349dee1f65e6d9a9f7a8fa669b2af2 (patch)
tree9265e433c2691bf39c699617b87f755c1d025908 /cli/tests/integration/cert_tests.rs
parent4a2d8c4bbd20cc282b4df42fe5da6414447315e0 (diff)
chore: combine `TestCommandBuilder` with `DenoCmd` (#21248)
Diffstat (limited to 'cli/tests/integration/cert_tests.rs')
-rw-r--r--cli/tests/integration/cert_tests.rs5
1 files changed, 3 insertions, 2 deletions
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,))