Skip to content

Commit

Permalink
Adapt tests
Browse files Browse the repository at this point in the history
Explicitly resume BufferedStream instances now that they start out
paused in bufferedstream@3
mjackson/bufferedstream@9db9607
  • Loading branch information
papandreou committed May 20, 2018
1 parent 9c8eab5 commit d934edc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/unexpectedExpress.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ describe('unexpectedExpress', function () {
setImmediate(function () {
requestBodyStream.end('foo=bar&baz=quux');
});
requestBodyStream.resume();
return expect(express().use(bodyParser.urlencoded()).use(function (req, res, next) {
res.send('Hello ' + req.param('foo') + ' and ' + req.param('baz'));
}), 'to yield exchange satisfying', {
Expand All @@ -311,6 +312,7 @@ describe('unexpectedExpress', function () {
setImmediate(function () {
requestBodyStream.end(new Buffer('foo=bar&baz=quux', 'utf-8'));
});
requestBodyStream.resume();
return expect(express().use(bodyParser.urlencoded()).use(function (req, res, next) {
res.send('Hello ' + req.param('foo') + ' and ' + req.param('baz'));
}), 'to yield exchange satisfying', {
Expand Down

0 comments on commit d934edc

Please sign in to comment.