Skip to content

Commit ab4ab84

Browse files
test,android: increase delay in performance test
Increases the initial delay in performance test to take into account Application and Activity initialization time on Android.
1 parent cde2d9c commit ab4ab84

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/sequential/test-performance.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,14 @@ assert(inited < 15000);
5656
assert.strictEqual(performance.nodeTiming.name, 'node');
5757
assert.strictEqual(performance.nodeTiming.entryType, 'node');
5858

59-
const delay = 250;
59+
let delay = 250;
60+
61+
if (common.isAndroid) {
62+
// Use a more generous initial delay on Android, taking into account
63+
// Application and Activity start time.
64+
delay = 2000;
65+
}
66+
6067
function checkNodeTiming(props) {
6168
console.log(props);
6269

0 commit comments

Comments
 (0)