summaryrefslogtreecommitdiff
path: root/tests/integration/js_unit_tests.rs
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2024-09-27 16:07:20 +0200
committerGitHub <noreply@github.com>2024-09-27 14:07:20 +0000
commit3134abefa462ead8bb8e2e4aa8a5b57910f3d430 (patch)
tree0f01cca8ca91ea6fb06347f17a77091259749c28 /tests/integration/js_unit_tests.rs
parent88a4f8dd97704b8905d05def949b137a75286b18 (diff)
BREAKING(ext/net): improved error code accuracy (#25383)
Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'tests/integration/js_unit_tests.rs')
-rw-r--r--tests/integration/js_unit_tests.rs15
1 files changed, 13 insertions, 2 deletions
diff --git a/tests/integration/js_unit_tests.rs b/tests/integration/js_unit_tests.rs
index 5efb0f268..577ca043c 100644
--- a/tests/integration/js_unit_tests.rs
+++ b/tests/integration/js_unit_tests.rs
@@ -143,8 +143,19 @@ fn js_unit_test(test: String) {
deno = deno.arg("--unstable-worker-options");
}
- // TODO(mmastrac): it would be better to just load a test CA for all tests
- if test == "websocket_test" || test == "tls_sni_test" {
+ // Some tests require the root CA cert file to be loaded.
+ if test == "websocket_test" {
+ deno = deno.arg(format!(
+ "--cert={}",
+ util::testdata_path()
+ .join("tls")
+ .join("RootCA.pem")
+ .to_string_lossy()
+ ));
+ };
+
+ if test == "tls_sni_test" {
+ // TODO(lucacasonato): fix the SNI in the certs so that this is not needed
deno = deno.arg("--unsafely-ignore-certificate-errors");
}