mirror of
https://github.com/juanfont/headscale.git
synced 2026-04-18 14:59:54 +02:00
Replace Curl() with CurlFailFast() in all negative curl assertions (where the test expects the connection to fail). CurlFailFast uses 1 retry and 2s max time instead of 3 retries and 5s max, which avoids wasting time on unnecessary retries when we expect the connection to be blocked. This affects 21 call sites across 7 test functions: - TestACLAllowUser80Dst - TestACLDenyAllPort80 - TestACLAllowUserDst - TestACLAllowStarDst - TestACLNamedHostsCanReach - TestACLDevice1CanAccessDevice2 - TestPolicyUpdateWhileRunningWithCLIInDatabase - TestACLAutogroupSelf - TestACLPolicyPropagationOverTime Where possible, the inline Curl+Error pattern is replaced with the assertCurlFailWithCollect helper introduced in the previous commit. Updates #3125
124 KiB
124 KiB