Skip to content

Commit

Permalink
report: fix stderr matching for fatal error
Browse files Browse the repository at this point in the history
  • Loading branch information
gengjiawen committed Apr 7, 2020
1 parent 6ed912d commit d9ddd2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/report/test-report-fatal-error.js
Expand Up @@ -113,8 +113,8 @@ const ARGS = [
assert.strictEqual(reports.length, 0);

const lines = child.stderr.split('\n');
// Skip over unavoidable free-form output from V8.
const report = lines[1];
// Skip over unavoidable free-form output and gc log from V8.
const report = lines.find((i) => i.startsWith('{'));
const json = JSON.parse(report);

assert.strictEqual(json.header.threadId, null);
Expand Down

0 comments on commit d9ddd2f

Please sign in to comment.