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
Next Next commit
Issue #23116: Decrease test run time
Decreasing maxSessionMemory lets us decrease number of iteractions
before the exception occurs without the fix.
  • Loading branch information
davedoesdev committed Oct 2, 2018
commit 6467dc1dca19bc28ef8bd626354f13f35eaba402
4 changes: 2 additions & 2 deletions test/parallel/test-http2-forget-closed-streams.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const http2 = require('http2');
const assert = require('assert');
const { Writable } = require('stream');

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

server.on('session', function(session) {
session.on('stream', function(stream) {
Expand All @@ -42,7 +42,7 @@ server.listen(0, function() {
const client = http2.connect(`http://localhost:${server.address().port}`);

function next(i) {
if (i === 100000) {
if (i === 10000) {
client.close();
return server.close();
}
Expand Down