Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ jobs:
runs-on: windows-latest
if: >-
github.ref == 'refs/heads/main' ||
github.ref == 'refs/heads/multicloud' ||
contains(github.event.head_commit.message, '[CI: windows]')
defaults:
run:
Expand Down
10 changes: 7 additions & 3 deletions e2e/staging_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1231,12 +1231,16 @@ func TestDaemonLauncher_ViaStore(t *testing.T) {
})
}

// setupIsolatedSocketPath sets TMPDIR to a temp directory, causing the daemon
// to look for a socket in a different location where no daemon is running.
// setupIsolatedSocketPath sets socket-related environment variables to a temp directory,
// causing the daemon to look for a socket in a different location where no daemon is running.
// This simulates the "daemon not running" scenario for E2E tests.
// Darwin uses TMPDIR, Linux uses XDG_RUNTIME_DIR, Windows uses LOCALAPPDATA.
func setupIsolatedSocketPath(t *testing.T) {
t.Helper()
t.Setenv("TMPDIR", t.TempDir())
tempDir := t.TempDir()
t.Setenv("TMPDIR", tempDir)
t.Setenv("XDG_RUNTIME_DIR", tempDir)
t.Setenv("LOCALAPPDATA", tempDir)
}

// TestDaemonLauncher_NotRunning tests launcher behavior when daemon is not running.
Expand Down