Skip to content

Commit 49474c3

Browse files
committed
test: gc before test-memory-usage baseline
Signed-off-by: inoway46 <inoueyuya416@gmail.com>
1 parent bbf51ad commit 49474c3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/parallel/test-memory-usage.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@
1919
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
2020
// USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

22-
// Flags: --predictable-gc-schedule
22+
// Flags: --expose-gc --predictable-gc-schedule
2323
'use strict';
2424
const common = require('../common');
2525
const assert = require('assert');
2626

27+
globalThis.gc();
28+
2729
const r = process.memoryUsage();
2830
// On IBMi, the rss memory always returns zero
2931
if (!common.isIBMi) {

0 commit comments

Comments
 (0)