Skip to content

Commit 539c4a5

Browse files
committed
chore: test slightly older image of atlas-local in case it's broken in GHA
https://www.mongodb.com/community/forums/t/mongodb-mongodb-atlas-local-not-working-in-github-actions/311906
1 parent c68e4ad commit 539c4a5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/integration/tools/mongodb/mongodbClusterProcess.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ export type MongoClusterConfiguration = MongoRunnerConfiguration | MongoSearchCo
1616

1717
const DOWNLOAD_RETRIES = 10;
1818

19+
const DEFAULT_LOCAL_IMAGE =
20+
"mongodb/mongodb-atlas-local@sha256:364c10e8de7fade95be8939fc817d15776f3724459ae689d078725c54a941333";
1921
export class MongoDBClusterProcess {
2022
static async spinUp(config: MongoClusterConfiguration): Promise<MongoDBClusterProcess> {
2123
if (MongoDBClusterProcess.isSearchOptions(config)) {
22-
const runningContainer = await new GenericContainer(config.image ?? "mongodb/mongodb-atlas-local:8")
24+
const runningContainer = await new GenericContainer(config.image ?? DEFAULT_LOCAL_IMAGE)
2325
.withExposedPorts(27017)
2426
.withCommand(["/usr/local/bin/runner", "server"])
2527
.withWaitStrategy(new ShellWaitStrategy(`mongosh --eval 'db.test.getSearchIndexes()'`))

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
import type { NodeDriverServiceProvider } from "@mongosh/service-provider-node-driver";
1717
import type { SearchIndexStatus } from "../../../../../src/tools/mongodb/search/listSearchIndexes.js";
1818

19-
const SEARCH_TIMEOUT = 20_000;
19+
const SEARCH_TIMEOUT = 60_000;
2020
describeWithMongoDB("list search indexes tool in local MongoDB", (integration) => {
2121
validateToolMetadata(
2222
integration,

0 commit comments

Comments
 (0)