test: reduce flakiness on test-net-write-fully-async-buffer

PR-URL: https://github.com/nodejs/node/pull/56971
Refs: https://github.com/nodejs/node/actions/runs/13220154720/job/36904132463?pr=56970
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
This commit is contained in:
Yagiz Nizipli authored and Michaël Zasso committed 2025-02-17 10:45:03 +01:00
1 parent ab150d7781
commit 0a82d27d28
1 file changed
+1 -1
@@ -23,7 +23,7 @@ const server = net.createServer(common.mustCall(function(conn) {
}
while (conn.write(Buffer.from(data)));
globalThis.gc({ type: 'minor' });
globalThis.gc({ type: 'major' });
// The buffer allocated above should still be alive.
}