diff --git a/src/Terminal/determineAllPossibilitiesForTabCompletion.ts b/src/Terminal/determineAllPossibilitiesForTabCompletion.ts index e7a926d33..83b610cc2 100644 --- a/src/Terminal/determineAllPossibilitiesForTabCompletion.ts +++ b/src/Terminal/determineAllPossibilitiesForTabCompletion.ts @@ -240,7 +240,7 @@ export async function determineAllPossibilitiesForTabCompletion( if (isCommand("connect")) { // All directly connected and backdoored servers are reachable - + console.log(GetAllServers()); return GetAllServers() .filter( (server) => diff --git a/test/jest/Terminal/determineAllPossibilitiesForTabCompletion.test.ts b/test/jest/Terminal/determineAllPossibilitiesForTabCompletion.test.ts index 5d5229af6..9c3365ee1 100644 --- a/test/jest/Terminal/determineAllPossibilitiesForTabCompletion.test.ts +++ b/test/jest/Terminal/determineAllPossibilitiesForTabCompletion.test.ts @@ -42,10 +42,10 @@ describe("determineAllPossibilitiesForTabCompletion", function () { requiredHackingSkill: 1, serverGrowth: 3000, }); - Player.getHomeComputer().serversOnNetwork.push(closeServer.ip); - closeServer.serversOnNetwork.push(Player.getHomeComputer().ip); - closeServer.serversOnNetwork.push(farServer.ip); - farServer.serversOnNetwork.push(closeServer.ip); + Player.getHomeComputer().serversOnNetwork.push(closeServer.hostname); + closeServer.serversOnNetwork.push(Player.getHomeComputer().hostname); + closeServer.serversOnNetwork.push(farServer.hostname); + farServer.serversOnNetwork.push(closeServer.hostname); AddToAllServers(closeServer); AddToAllServers(farServer); });