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 <ReactorScram@users.noreply.github.com>
Co-authored-by: Reactor Scram <ReactorScram@users.noreply.github.com>
This commit is contained in:
Thomas Eizinger
2024-07-10 00:50:12 +10:00
committed by GitHub
parent d15c43b6f2
commit f3fa0c7e5f

View File

@@ -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.
}
}