Skip to content

Commit 2f3a54e

Browse files
committed
test: fix e2e cases
1 parent d3a2fea commit 2f3a54e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test-e2e/tracker/run-time.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe('Run time tracking', () => {
6161
await sleep(4)
6262
records = await readRecordsOfFirstPage(context)
6363
const runTime3 = parseTime2Sec(records[0].runTime)
64-
expect(runTime3).toBeLessThanOrEqual((disableTs - enableTs) / 1000)
64+
expect(runTime3).toBeLessThanOrEqual(Math.round((disableTs - enableTs) / 1000))
6565
}, 60000)
6666

6767
test('white list', async () => {

0 commit comments

Comments
 (0)