Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use resume to consume stream in test
  • Loading branch information
davedoesdev committed Oct 2, 2018
commit 4a7367f5bfac5e7ca1b865a22a69e1c94842b1d0
7 changes: 1 addition & 6 deletions test/parallel/test-http2-forget-closed-streams.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ if (!common.hasCrypto) {

const http2 = require('http2');
const assert = require('assert');
const { Writable } = require('stream');

const server = http2.createServer({ maxSessionMemory: 1 });

Expand All @@ -30,11 +29,7 @@ server.on('session', function(session) {
endStream: true
});
}));
stream.pipe(new Writable({
write(chunk, encoding, cb) {
cb();
}
}));
stream.resume();
});
});

Expand Down