From 5051d52796a745794b5c44f415fd4de4ed227957 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Mon, 5 May 2025 00:44:47 -0400 Subject: [PATCH] net: Fix unit tests requiring default resources. (#36838) When all unit tests are run, the existing feature flag use from net_traits was enough to ensure the default resources are baked into the test binary. When only the unit tests for the `net` crate are run, that feature flag was not enabled in the build so the tests that require the resources fail. Testing: Ran `./mach test-unit -p net` Fixes: #36837 Signed-off-by: Josh Matthews --- components/net/Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/components/net/Cargo.toml b/components/net/Cargo.toml index 04ef7ac190c..9af310f32bc 100644 --- a/components/net/Cargo.toml +++ b/components/net/Cargo.toml @@ -75,6 +75,7 @@ webpki-roots = { workspace = true } webrender_api = { workspace = true } [dev-dependencies] +embedder_traits = { workspace = true, features = ["baked-default-resources"] } flate2 = "1" futures = { version = "0.3", features = ["compat"] } hyper = { workspace = true, features = ["full"] }