diff options
Diffstat (limited to 'tests/e2e/config_hotswap_test.go')
| -rw-r--r-- | tests/e2e/config_hotswap_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/e2e/config_hotswap_test.go b/tests/e2e/config_hotswap_test.go index 6dfcec5..5c483ac 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", "5") + cmdA := exec.Command(binaryPath, "--profile", profile, "--", "sleep", "0.1") cmdA.Env = append(os.Environ(), fmt.Sprintf("XDG_RUNTIME_DIR=%s", tmpRuntimeDir), fmt.Sprintf("XDG_CONFIG_HOME=%s", tmpConfigDir), @@ -52,8 +52,7 @@ Endpoint = 1.1.1.1:51820 } defer func() { _ = cmdA.Process.Kill() }() - pidsDir := filepath.Join(tmpRuntimeDir, "profiles", profile, "pids") - waitForPids(t, pidsDir, 1) + waitForLifecycle(t, binaryPath, tmpRuntimeDir, profile, true) // 2. "Hot-Swap" the configuration file while the tunnel is active. // We change the endpoint to something obviously different. |
