We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee46d22 commit 0fd8ce1Copy full SHA for 0fd8ce1
test/parallel/test-performance-measure.js
@@ -10,7 +10,15 @@ const ALLOWED_MARGIN = 10;
10
const expected = ['Start to Now', 'A to Now', 'A to B'];
11
const obs = new PerformanceObserver(common.mustCall((items) => {
12
items.getEntries().forEach(({ name, duration }) => {
13
- assert.ok(duration > (DELAY - ALLOWED_MARGIN));
+ // TODO(mrjithil) try catch is to fix the flaky error
14
+ try {
15
+ assert.ok(duration < (DELAY - ALLOWED_MARGIN));
16
+ }
17
+ catch (err) {
18
+ console.log('test/parallel/test-performance-measure.js is flaky');
19
+ console.log(`${DELAY} | ${ALLOWED_MARGIN} | ${duration}`);
20
+ throw err;
21
22
assert.strictEqual(expected.shift(), name);
23
});
24
}));
0 commit comments