[history-v1] increase timeout for preparing test environment (#24345)

GitOrigin-RevId: a11a16f07da61603218ff14bef32172d4f32c469
This commit is contained in:
Jakob Ackermann 2025-03-17 16:33:11 +00:00 committed by Copybot
parent 0292bc418d
commit a530cca2c5

View file

@ -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'),