Skip to content

Commit 44a3ce8

Browse files
committed
chore: increase timeout time for CI
1 parent 539c4a5 commit 44a3ce8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/integration/tools/mongodb/mongodbClusterProcess.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ export type MongoClusterConfiguration = MongoRunnerConfiguration | MongoSearchCo
1616

1717
const DOWNLOAD_RETRIES = 10;
1818

19-
const DEFAULT_LOCAL_IMAGE =
20-
"mongodb/mongodb-atlas-local@sha256:364c10e8de7fade95be8939fc817d15776f3724459ae689d078725c54a941333";
19+
const DEFAULT_LOCAL_IMAGE = "mongodb/mongodb-atlas-local:8";
2120
export class MongoDBClusterProcess {
2221
static async spinUp(config: MongoClusterConfiguration): Promise<MongoDBClusterProcess> {
2322
if (MongoDBClusterProcess.isSearchOptions(config)) {

tests/integration/tools/mongodb/mongodbHelpers.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ export async function getServerVersion(integration: MongoDBIntegrationTestCase):
263263
}
264264

265265
const SEARCH_RETRIES = 200;
266+
const SEARCH_WAITING_TICK = 100;
266267

267268
export async function waitUntilSearchIsReady(
268269
provider: NodeDriverServiceProvider,
@@ -277,7 +278,7 @@ export async function waitUntilSearchIsReady(
277278
return;
278279
} catch (err) {
279280
lastError = err;
280-
await sleep(10);
281+
await sleep(SEARCH_WAITING_TICK);
281282
}
282283
}
283284

@@ -304,7 +305,7 @@ export async function waitUntilIndexIsQueryable(
304305
}
305306
} catch (err) {
306307
lastError = err;
307-
await sleep(100);
308+
await sleep(SEARCH_WAITING_TICK);
308309
}
309310
}
310311

0 commit comments

Comments
 (0)