test: fix flaky http2-flow-control test

PR-URL: https://github.com/nodejs/node/pull/20556
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This commit is contained in:
Anatoli Papirovski 2018-05-06 08:01:02 +02:00 committed by Myles Borins
parent cf44abbbfe
commit ac89450326
No known key found for this signature in database
GPG Key ID: 933B01F40B5CA946

View File

@ -70,8 +70,6 @@ server.on('stream', (stream) => {
client.destroy();
}));
stream.on('end', common.mustNotCall());
stream.respond();
stream.end('ok');
});
server.listen(0, () => {