mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-06 07:39:02 +02:00
Merge pull request #3241 from overleaf/jpa-speedup-acceptance-tests
[misc] speedup the ConvertArchivedState test suite GitOrigin-RevId: e7d6471955aabbc6af76e27fdf23d97e2fd87901
This commit is contained in:
@@ -33,7 +33,8 @@ async function batchedUpdate(collectionName, query, update, projection) {
|
||||
// Some secondary connections are not ready as it returns, leading to
|
||||
// failing cursor actions with a readPreference set to 'secondary'.
|
||||
// TODO(das7pad): revisit/remove this delay after the mongo-driver update.
|
||||
await Promise.all([getNativeDb(), promisify(setTimeout)(10 * 1000)])
|
||||
const CONNECT_DELAY = parseInt(process.env.CONNECT_DELAY, 10) || 10000
|
||||
await Promise.all([getNativeDb(), promisify(setTimeout)(CONNECT_DELAY)])
|
||||
|
||||
const db = await getNativeDb()
|
||||
const collection = db.collection(collectionName)
|
||||
|
||||
Reference in New Issue
Block a user