Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(desktop): a timed-out login-shell probe no longer skips the server's PATH repair #21771

Mergedtiliakoos(GitHub profile, opens in a new tab)merged 4 commits intomain fromrefs/pull/21771/headmerged by maria-rcks View on GitHub

Showing 2 changed files with 20 additions and 4 deletions.

x
0 of 2 viewed, 2 left
16 additions and 2 deletionsapps/desktop/src/shell/DesktopShellEnvironment.test.tsModified
View file
@@ -149,7 +149,7 @@
const commands: ChildProcess.Command[] = [];
​
- yield* runShellEnvironment({
+ const prepared = yield* runShellEnvironment({
env,
platform: "darwin",
handler: (command) => {
@@ -167,6 +167,7 @@
assert.equal(env.PATH, "/opt/homebrew/bin:/usr/bin:/Users/test/.local/bin");
assert.equal(env.SSH_AUTH_SOCK, "/tmp/secretive.sock");
assert.equal(env.HOMEBREW_PREFIX, "/opt/homebrew");
+ assert.isTrue(prepared);
}),
​
@@ -267,7 +268,7 @@
const commands: string[] = [];
​
- yield* runShellEnvironment({
+ const prepared = yield* runShellEnvironment({
env,
platform: "darwin",
handler: (command) => {
@@ -279,6 +280,19 @@