File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
tests/integration/tools/mongodb Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,7 @@ export type MongoClusterConfiguration = MongoRunnerConfiguration | MongoSearchCo
1616
1717const 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" ;
2120export class MongoDBClusterProcess {
2221 static async spinUp ( config : MongoClusterConfiguration ) : Promise < MongoDBClusterProcess > {
2322 if ( MongoDBClusterProcess . isSearchOptions ( config ) ) {
Original file line number Diff line number Diff line change @@ -263,6 +263,7 @@ export async function getServerVersion(integration: MongoDBIntegrationTestCase):
263263}
264264
265265const SEARCH_RETRIES = 200 ;
266+ const SEARCH_WAITING_TICK = 100 ;
266267
267268export 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
You can’t perform that action at this time.
0 commit comments