From f3fa0c7e5fdc46918af01fa5665ab5defc69fcfd Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Wed, 10 Jul 2024 00:50:12 +1000 Subject: [PATCH] test(connlib): reduce cycles of `resource_management` test (#5807) With the performance improvements of `tunnel_test` in #5786, the `resource_management` test is now in the hot-path of CI runtime. We reduce the cycles to 50 should cut down overall CI time by ~ 1 minute as the Windows builds are among the slowest. Signed-off-by: Reactor Scram Co-authored-by: Reactor Scram --- rust/connlib/tunnel/src/device_channel/tun_windows.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/connlib/tunnel/src/device_channel/tun_windows.rs b/rust/connlib/tunnel/src/device_channel/tun_windows.rs index d6358e510..6435dc2cb 100644 --- a/rust/connlib/tunnel/src/device_channel/tun_windows.rs +++ b/rust/connlib/tunnel/src/device_channel/tun_windows.rs @@ -344,8 +344,8 @@ mod tests { #[test] #[ignore = "Needs admin privileges"] fn resource_management() { - // Each cycle takes about half a second, so this will need over a minute to run. - for _ in 0..150 { + // Each cycle takes about half a second, so this will take a fair bit to run. + for _ in 0..50 { let _tun = Tun::new().unwrap(); // This will panic if we don't correctly clean-up the wintun interface. } }