test: fix flaky test-http2-session-unref

This test should exit naturally or will timeout on its own,
a separate unrefed timer is not necessary.

PR-URL: https://github.com/nodejs/node/pull/18589
Fixes: https://github.com/nodejs/node/issues/18587
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Anatoli Papirovski 2018-02-05 15:55:15 -05:00 committed by Ruben Bridgewater
parent e542920467
commit b8f7f84fc2
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

View File

@ -49,5 +49,3 @@ server.listen(0, common.mustCall(() => {
}));
server.emit('connection', serverSide);
server.unref();
setTimeout(common.mustNotCall(() => {}), 1000).unref();