summaryrefslogtreecommitdiff
path: root/tests/e2e
diff options
context:
space:
mode:
authorJames O'Doherty <james@theodohertyfamily.com>2026-05-22 11:20:24 -0400
committerJames O'Doherty <james@theodohertyfamily.com>2026-05-22 11:20:24 -0400
commit079e4240534cbdc8751f1a127def20f2d1e58da6 (patch)
tree3765ab0df3be656eac664a216158ef409e29e6e5 /tests/e2e
parent3b56ccecf46b83fa9b0e4b6c54be6ffda395910c (diff)
Refactor lifecycle to support XDG_RUNTIME_DIR and fix binary pathing in E2E tests
Diffstat (limited to 'tests/e2e')
-rw-r--r--tests/e2e/lifecycle_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/e2e/lifecycle_test.go b/tests/e2e/lifecycle_test.go
index 45890fa..baf9f56 100644
--- a/tests/e2e/lifecycle_test.go
+++ b/tests/e2e/lifecycle_test.go
@@ -27,7 +27,7 @@ func TestNamespaceLifecycleAutomation(t *testing.T) {
t.Run("ReferenceCounting", func(t *testing.T) {
// Start a process that exits quickly
cmd1 := exec.Command(binaryPath, "--profile", profile, "--", "sleep", "0.1")
- cmd1.Env = append(os.Environ(), fmt.Sprintf("WG_WRAP_RUNTIME_DIR=%s", tmpRuntimeDir))
+ cmd1.Env = append(os.Environ(), fmt.Sprintf("XDG_RUNTIME_DIR=%s", tmpRuntimeDir))
if err := cmd1.Start(); err != nil {
t.Fatalf("Failed to start cmd1: %v", err)
}
@@ -46,7 +46,7 @@ func TestNamespaceLifecycleAutomation(t *testing.T) {
// Start a second process using the same profile
cmd2 := exec.Command(binaryPath, "--profile", profile, "--", "sleep", "0.1")
- cmd2.Env = append(os.Environ(), fmt.Sprintf("WG_WRAP_RUNTIME_DIR=%s", tmpRuntimeDir))
+ cmd2.Env = append(os.Environ(), fmt.Sprintf("XDG_RUNTIME_DIR=%s", tmpRuntimeDir))
if err := cmd2.Start(); err != nil {
t.Fatalf("Failed to start cmd2: %v", err)
}