From b098e2845b68ce90f34e4e1e927b4914d0b00ef7 Mon Sep 17 00:00:00 2001 From: James O'Doherty Date: Fri, 29 May 2026 21:24:42 -0400 Subject: fix: resolve deadlocks, routing errors, and test timings in test suite - fix(cli): resolve Flock self-deadlock in ExecuteCommand cleanup by reusing the existing lockFile handle if already held during premature exit. - fix(wireguard): configure explicit default route destination (0.0.0.0/0 for IPv4 and ::/0 for IPv6) to avoid netlink "either Dst.IP, Src.IP or Gw must be set" error. - fix(wireguard): initialize the Tunnel return parameter in StartTunnel to prevent a nil pointer dereference. - test(e2e): fix argument ordering in waitForLifecycle to pass "test-lifecycle" first, and increase sleep duration of dummy processes to 1.0s to ensure reliable process persistence under race detection. --- tests/e2e/config_hotswap_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/e2e/config_hotswap_test.go') diff --git a/tests/e2e/config_hotswap_test.go b/tests/e2e/config_hotswap_test.go index 5c483ac..b4a7ca5 100644 --- a/tests/e2e/config_hotswap_test.go +++ b/tests/e2e/config_hotswap_test.go @@ -42,7 +42,7 @@ Endpoint = 1.1.1.1:51820 } // Start a process to establish the session - cmdA := exec.Command(binaryPath, "--profile", profile, "--", "sleep", "0.1") + cmdA := exec.Command(binaryPath, "--profile", profile, "--", "sleep", "1.0") cmdA.Env = append(os.Environ(), fmt.Sprintf("XDG_RUNTIME_DIR=%s", tmpRuntimeDir), fmt.Sprintf("XDG_CONFIG_HOME=%s", tmpConfigDir), -- cgit v1.2.3