Skip to content

Commit 7092d5a

Browse files
authored
Update report-validation.test.ts (#31)
test performance timing
2 parents 9838e3a + e995a8a commit 7092d5a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

typescript/tests/unit/utils/validation/report-validation.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -857,8 +857,9 @@ describe("Report Validation Tests", () => {
857857
const end = performance.now();
858858
const duration = end - start;
859859

860-
// Should complete in reasonable time (less than 1000ms)
861-
expect(duration).toBeLessThan(1000);
860+
// Should complete in reasonable time,
861+
// time needs to be big enough to handle ci enviroments.
862+
expect(duration).toBeLessThan(2000);
862863
});
863864

864865
it("should handle large report data efficiently", () => {

0 commit comments

Comments
 (0)