Skip to content

Commit cf58b17

Browse files
committed
Return early if server info is unavailable
1 parent e2ffe13 commit cf58b17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/compass-e2e-tests/helpers/test-runner-context.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,10 @@ export function isEndOfLifeConnection(connectionName: string) {
336336
const connectionIndex = DEFAULT_CONNECTION_NAMES.indexOf(connectionName);
337337
const serverInfo = DEFAULT_CONNECTIONS_SERVER_INFO[connectionIndex];
338338
if (!serverInfo) {
339-
throw new Error(
339+
debug(
340340
`Unable to find server info for connection named '${connectionName}'`
341341
);
342+
return false;
342343
}
343344
return isEndOfLifeVersion(serverInfo.version);
344345
}

0 commit comments

Comments
 (0)