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 authored and Myles Borins committed 2018-02-21 10:19:28 -05:00
1 parent ef2d9c2c54
commit 30a233cfce
1 file changed
-2
@@ -49,5 +49,3 @@ server.listen(0, common.mustCall(() => {
}));
server.emit('connection', serverSide);
server.unref();
setTimeout(common.mustNotCall(() => {}), 1000).unref();