Skip to content

Commit

Permalink
Increase large file's memory consumption
Browse files Browse the repository at this point in the history
Try to combat flakey memory tests by increasing the test file size even
further...
  • Loading branch information
noppa committed Sep 30, 2023
1 parent 747c951 commit e61162b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ async function testWithLargeFile() {
/* globals gc */
gc();
}
// Make a large XML file by repeating the item 200 000 times.
// This will take about 200MB.
const xml = xmlValid.replace(partToRepliacate, partToRepliacate.repeat(200000));
// Make a large XML file by repeating the item 400 000 times.
// This will take about 400MB.
const xml = xmlValid.replace(partToRepliacate, partToRepliacate.repeat(400000));
let error = 'No error. XML length: '
// Force V8 to eagerly evaluate length of the created string to fight
// any weird optimiziations that it migt be tempted to do.
Expand Down

0 comments on commit e61162b

Please sign in to comment.