ci: Fix performance step in CI (#9927)

This commit is contained in:
Manuel
2025-11-09 18:57:23 +01:00
committed by GitHub
parent 3cc8c1ae3e
commit 133660fb52
2 changed files with 3 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ const MONGODB_URI = process.env.MONGODB_URI || 'mongodb://localhost:27017/parse_
const SERVER_URL = 'http://localhost:1337/parse';
const APP_ID = 'benchmark-app-id';
const MASTER_KEY = 'benchmark-master-key';
const ITERATIONS = parseInt(process.env.BENCHMARK_ITERATIONS || '10000', 10);
const ITERATIONS = parseInt(process.env.BENCHMARK_ITERATIONS || '1000', 10);
// Parse Server instance
let parseServer;
@@ -363,7 +363,7 @@ async function runBenchmarks() {
server.close();
}
// Give some time for cleanup
setTimeout(() => process.exit(0), 10000);
setTimeout(() => process.exit(0), 1000);
}
}