diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-09-02 12:56:31 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2018-09-06 08:54:58 +0200 |
commit | cb9371963de9866f3409ada26c38d3aa0cc221a5 (patch) | |
tree | e74d6c2ca9ead3d7fb439705c1b19346b36223d4 /src | |
parent | d626372d8c3da71ea465d630afee159de18097aa (diff) | |
download | node-new-cb9371963de9866f3409ada26c38d3aa0cc221a5.tar.gz |
test: refactor test-gc-tls-external-memory
- Don’t use network connections, we don’t need them and
they add more native objects into the mix when we care
about other kinds of native objects.
- Run GC only once every 64 iterations – this cuts down
running time from 4 s to 400 ms.
- Use `common.mustCall()` for the `connect()` handler.
- Make sure that the TLS sockets do get garbage collected,
since the test would otherwise also pass if they remain
alive indefinitely.
PR-URL: https://github.com/nodejs/node/pull/22651
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: George Adams <george.adams@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions