Skip to content

Commit

Permalink
increase wait time in repl test to reduce flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed Aug 8, 2021
1 parent e985fd0 commit fae10d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/index.spec.ts
Expand Up @@ -2089,15 +2089,15 @@ test.suite('ts-node', (test) => {
const endTime = new Date().getTime();
endTime - startTime;
`;
const { stdout, stderr } = await executeInTlaRepl(script, 2500);
const { stdout, stderr } = await executeInTlaRepl(script, 6000);

expect(stderr).to.equal('');

const ellapsedTime = Number(
const elapsedTime = Number(
stdout.split('\n')[0].replace('> ', '').trim()
);
expect(ellapsedTime).to.be.gte(awaitMs - 50);
expect(ellapsedTime).to.be.lte(awaitMs + 100);
expect(elapsedTime).to.be.gte(awaitMs - 50);
expect(elapsedTime).to.be.lte(awaitMs + 100);
}
);

Expand Down

0 comments on commit fae10d4

Please sign in to comment.