Skip to content

Commit 3fe07d4

Browse files
committed
test(desktop): expect discovered SSH ports to survive
1 parent 01c736d commit 3fe07d4

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎apps/desktop/src/ssh/DesktopSshEnvironment.test.ts‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,6 @@ describe("sshEnvironment", () => {
8383
const sshEnvironment = yield* DesktopSshEnvironment.DesktopSshEnvironment;
8484
const hosts = yield* sshEnvironment.discoverHosts({ homeDir });
8585
assert.deepEqual(hosts, [
86-
{
87-
alias: "bastion.example.com",
88-
hostname: "bastion.example.com",
89-
username: null,
90-
port: null,
91-
source: "known-hosts",
92-
},
9386
{
9487
alias: "devbox",
9588
hostname: "devbox",
@@ -104,6 +97,13 @@ describe("sshEnvironment", () => {
10497
port: null,
10598
source: "known-hosts",
10699
},
100+
{
101+
alias: "ssh://bastion.example.com:2222",
102+
hostname: "bastion.example.com",
103+
username: null,
104+
port: 2222,
105+
source: "known-hosts",
106+
},
107107
{
108108
alias: "staging",
109109
hostname: "staging",

0 commit comments

Comments
 (0)