mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-15 16:37:28 +00:00
[history-v1] increase timeout for preparing test environment (#24345)
GitOrigin-RevId: a11a16f07da61603218ff14bef32172d4f32c469
This commit is contained in:
parent
0292bc418d
commit
a530cca2c5
1 changed files with 3 additions and 0 deletions
|
@ -10,10 +10,12 @@ require('mongodb').ObjectId.cacheHexString = true
|
|||
chai.use(chaiAsPromised)
|
||||
|
||||
async function setupPostgresDatabase() {
|
||||
this.timeout(60_000)
|
||||
await knex.migrate.latest()
|
||||
}
|
||||
|
||||
async function setupMongoDatabase() {
|
||||
this.timeout(60_000)
|
||||
await mongodb.db.collection('projectHistoryChunks').createIndexes([
|
||||
{
|
||||
key: { projectId: 1, startVersion: 1 },
|
||||
|
@ -30,6 +32,7 @@ async function setupMongoDatabase() {
|
|||
}
|
||||
|
||||
async function createGcsBuckets() {
|
||||
this.timeout(60_000)
|
||||
for (const bucket of [
|
||||
config.get('blobStore.globalBucket'),
|
||||
config.get('blobStore.projectBucket'),
|
||||
|
|
Loading…
Add table
Reference in a new issue