mirror of
https://github.com/nodejs/node.git
synced 2025-05-02 17:01:08 +00:00
test: make trace-gc-flag tests less strict
PR-URL: https://github.com/nodejs/node/pull/45579 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
d6dae7420e
commit
fb91ee4f26
@ -19,15 +19,11 @@ const fixtures = require('../common/fixtures');
|
|||||||
const lines = splitByLine(output);
|
const lines = splitByLine(output);
|
||||||
|
|
||||||
const scavengeRegex = /\bScavenge\b/;
|
const scavengeRegex = /\bScavenge\b/;
|
||||||
const expectedOutput = [
|
const eofRegex = /\bMark-Compact\b/;
|
||||||
scavengeRegex,
|
|
||||||
scavengeRegex,
|
|
||||||
scavengeRegex,
|
|
||||||
scavengeRegex,
|
|
||||||
/\bMark-Compact\b/,
|
|
||||||
];
|
|
||||||
lines.forEach((line, index) => {
|
lines.forEach((line, index) => {
|
||||||
assert.match(line, expectedOutput[index]);
|
const expected = index !== lines.length - 1 ? scavengeRegex : eofRegex;
|
||||||
|
assert.match(line, expected);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user