Skip to content

Commit 68daead

Browse files
committed
less flaky tests
1 parent 69c8beb commit 68daead

File tree

2 files changed

+17
-41
lines changed

2 files changed

+17
-41
lines changed

packages/it-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"version": "4.0.425",
77
"license": "SEE LICENSE IN LICENSE.md",
88
"scripts": {
9-
"test": " node --test src/node-version/media-parser.mjs && bun test src/rendering --run",
9+
"test": " node --test src/node-version/media-parser.mjs && bun test src/rendering --run --timeout 60000",
1010
"testssr": "bun test src/ssr src/bundle src/webcodecs src/templates src/monorepo --timeout 40000",
1111
"testlambda": "exit 0",
1212
"lint": "tsc -d",
Lines changed: 16 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,22 @@
11
import {expect, test} from 'bun:test';
22
import {getMissedFramesforCodec} from './test-utils';
33

4-
test(
5-
'should render correct frames from embedded videos - WebM onthread',
6-
async () => {
7-
const missedFrames = await getMissedFramesforCodec('webm', 'normal');
8-
expect(missedFrames).toBeLessThanOrEqual(8);
9-
},
10-
{
11-
timeout: 60000,
12-
},
13-
);
4+
test('should render correct frames from embedded videos - WebM onthread', async () => {
5+
const missedFrames = await getMissedFramesforCodec('webm', 'normal');
6+
expect(missedFrames).toBeLessThanOrEqual(8);
7+
});
148

15-
test(
16-
'should render correct frames from embedded videos - WebM offthread',
17-
async () => {
18-
const missedFrames = await getMissedFramesforCodec('webm', 'offthread');
19-
expect(missedFrames).toBe(0);
20-
},
21-
{
22-
timeout: 60000,
23-
},
24-
);
9+
test('should render correct frames from embedded videos - WebM offthread', async () => {
10+
const missedFrames = await getMissedFramesforCodec('webm', 'offthread');
11+
expect(missedFrames).toBe(0);
12+
});
2513

26-
test(
27-
'should render correct frames from embedded videos - MP4 onthread',
28-
async () => {
29-
const missedFrames = await getMissedFramesforCodec('mp4', 'normal');
30-
expect(missedFrames).toBeLessThanOrEqual(8);
31-
},
32-
{
33-
timeout: 60000,
34-
},
35-
);
14+
test('should render correct frames from embedded videos - MP4 onthread', async () => {
15+
const missedFrames = await getMissedFramesforCodec('mp4', 'normal');
16+
expect(missedFrames).toBeLessThanOrEqual(8);
17+
});
3618

37-
test(
38-
'should render correct frames from embedded videos - MP4 offthread',
39-
async () => {
40-
const missedFrames = await getMissedFramesforCodec('mp4', 'offthread');
41-
expect(missedFrames).toBe(0);
42-
},
43-
{
44-
timeout: 60000,
45-
},
46-
);
19+
test('should render correct frames from embedded videos - MP4 offthread', async () => {
20+
const missedFrames = await getMissedFramesforCodec('mp4', 'offthread');
21+
expect(missedFrames).toBe(0);
22+
});

0 commit comments

Comments
 (0)