Skip to content

Commit e38743f

Browse files
fix error message in listSearchIndexes test
1 parent c29581f commit e38743f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integration/tools/mongodb/search/listSearchIndexes.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
import type { SearchIndexWithStatus } from "../../../../../src/tools/mongodb/search/listSearchIndexes.js";
1818

1919
const SEARCH_TIMEOUT = 60_000;
20+
const isMacOSInGitHubActions = process.platform === "darwin" && process.env.GITHUB_ACTIONS === "true";
2021

2122
describeWithMongoDB("list-search-indexes tool in local MongoDB", (integration) => {
2223
validateToolMetadata(
@@ -36,8 +37,9 @@ describeWithMongoDB("list-search-indexes tool in local MongoDB", (integration) =
3637
});
3738
const content = getResponseContent(response.content);
3839
expect(response.isError).toBe(true);
40+
const CTA = isMacOSInGitHubActions ? "Atlas CLI" : "`atlas-local` tools";
3941
expect(content).toEqual(
40-
"The connected MongoDB deployment does not support vector search indexes. Either connect to a MongoDB Atlas cluster or use the Atlas CLI to create and manage a local Atlas deployment."
42+
`The connected MongoDB deployment does not support vector search indexes. Either connect to a MongoDB Atlas cluster or use the ${CTA} to create and manage a local Atlas deployment.`
4143
);
4244
});
4345
});

0 commit comments

Comments
 (0)