summaryrefslogtreecommitdiff
path: root/tests/e2e/sharing_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/e2e/sharing_test.go')
-rw-r--r--tests/e2e/sharing_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/e2e/sharing_test.go b/tests/e2e/sharing_test.go
index 1ecfbe6..f6c8476 100644
--- a/tests/e2e/sharing_test.go
+++ b/tests/e2e/sharing_test.go
@@ -40,7 +40,7 @@ Endpoint = 1.1.1.1:51820
pidsDir := filepath.Join(tmpRuntimeDir, "profiles", profile, "pids")
// Start Process A running a command that outputs its netns and sleeps
- cmdA := exec.Command(binaryPath, "--profile", profile, "--", "sh", "-c", "readlink /proc/self/ns/net && sleep 5")
+ cmdA := exec.Command(binaryPath, "run", "--profile", profile, "--", "sh", "-c", "readlink /proc/self/ns/net && sleep 5")
cmdA.Env = append(os.Environ(),
fmt.Sprintf("XDG_RUNTIME_DIR=%s", tmpRuntimeDir),
fmt.Sprintf("XDG_CONFIG_HOME=%s", tmpConfigDir),
@@ -75,7 +75,7 @@ Endpoint = 1.1.1.1:51820
waitForPids(t, pidsDir, 1)
// Start Process B to check its netns ID
- cmdB := exec.Command(binaryPath, "--profile", profile, "--", "readlink", "/proc/self/ns/net")
+ cmdB := exec.Command(binaryPath, "run", "--profile", profile, "--", "readlink", "/proc/self/ns/net")
cmdB.Env = append(os.Environ(),
fmt.Sprintf("XDG_RUNTIME_DIR=%s", tmpRuntimeDir),
fmt.Sprintf("XDG_CONFIG_HOME=%s", tmpConfigDir),