mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-29 20:11:32 +02:00
[history-v1] increase timeout for preparing test environment (#24345)
GitOrigin-RevId: a11a16f07da61603218ff14bef32172d4f32c469
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user