test: increase timeout for initial contents tests (#55355)

This commit is contained in:
Oliver Eyton-Williams
2024-06-27 22:29:53 +02:00
committed by GitHub
parent c172264dfa
commit ebfbd74c24

View File

@@ -417,7 +417,9 @@ function populateTestsForLang({ lang, challenges, meta, superBlocks }) {
const timePerTest =
challengeType === challengeTypes.python ? 10000 : 5000;
it('Test suite must fail on the initial contents', async function () {
this.timeout(timePerTest * tests.length + 1000);
// TODO: some tests take a surprisingly long time to setup the
// test runner, so this timeout is large while we investigate.
this.timeout(timePerTest * tests.length + 20000);
// suppress errors in the console.
const oldConsoleError = console.error;
console.error = () => {};