Skip to content

Commit fb91ee4

Browse files
anonrignodejs-github-bot
authored andcommittedNov 27, 2022
test: make trace-gc-flag tests less strict
PR-URL: #45579 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent d6dae74 commit fb91ee4

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed
 

‎test/v8-updates/test-trace-gc-flag.js

+4-8
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,11 @@ const fixtures = require('../common/fixtures');
1919
const lines = splitByLine(output);
2020

2121
const scavengeRegex = /\bScavenge\b/;
22-
const expectedOutput = [
23-
scavengeRegex,
24-
scavengeRegex,
25-
scavengeRegex,
26-
scavengeRegex,
27-
/\bMark-Compact\b/,
28-
];
22+
const eofRegex = /\bMark-Compact\b/;
23+
2924
lines.forEach((line, index) => {
30-
assert.match(line, expectedOutput[index]);
25+
const expected = index !== lines.length - 1 ? scavengeRegex : eofRegex;
26+
assert.match(line, expected);
3127
});
3228
}
3329

0 commit comments

Comments
 (0)