diff --git a/test.js b/test.js index 0984a27..67e44fe 100644 --- a/test.js +++ b/test.js @@ -117,7 +117,7 @@ test('invalid version does not cause catatrophic backtracking', t => { const fixture = `0.0.0-0${'.-------'.repeat(index)}@`; semverRegex().test(fixture); const difference = Date.now() - start; - t.true(difference < 10, `Execution time: ${difference}`); + t.true(difference < 20, `Execution time: ${difference}`); } for (let index = 1; index <= 20; index++) { @@ -125,6 +125,6 @@ test('invalid version does not cause catatrophic backtracking', t => { const fixture = `0.0.1-${'-.--'.repeat(index)} `; semverRegex().test(fixture); const difference = Date.now() - start; - t.true(difference < 10, `Execution time: ${difference}`); + t.true(difference < 20, `Execution time: ${difference}`); } });