Skip to content

Commit

Permalink
test: make trace-gc-flag tests less strict
Browse files Browse the repository at this point in the history
PR-URL: nodejs#45579
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
anonrig authored and ErickWendel committed Nov 30, 2022
1 parent 554c818 commit 22a2a3c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions test/v8-updates/test-trace-gc-flag.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,11 @@ const fixtures = require('../common/fixtures');
const lines = splitByLine(output);

const scavengeRegex = /\bScavenge\b/;
const expectedOutput = [
scavengeRegex,
scavengeRegex,
scavengeRegex,
scavengeRegex,
/\bMark-Compact\b/,
];
const eofRegex = /\bMark-Compact\b/;

lines.forEach((line, index) => {
assert.match(line, expectedOutput[index]);
const expected = index !== lines.length - 1 ? scavengeRegex : eofRegex;
assert.match(line, expected);
});
}

Expand Down

0 comments on commit 22a2a3c

Please sign in to comment.