Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
#6 more room for timeout inacurracy in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kjarmicki committed Jul 7, 2016
1 parent cef9a05 commit ee9ea81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/test-app/test-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function createExpressApp() {
icCounts[req.params.id] = count + 1;
setTimeout(function() {
res.status(200).send(count.toString());
}, 10);
}, 50);
});

// incrementing counter with a configurable cache-control setting
Expand Down
4 changes: 2 additions & 2 deletions test/top-to-bottom/collapsing-requests-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ describe("Requests with collapsing", function() {
it("shouldn't collapse even slightly different requests", function(done) {
var gghttp = require('../../')({cache: false});
var url = app.url("/incrementing-counter/sncesdr");
var first = gghttp({url: url, timeout: 20});
var second = gghttp({url: url, timeout: 21});
var first = gghttp({url: url, timeout: 100});
var second = gghttp({url: url, timeout: 101});
Promise.all([first, second]).then(function(results) {
results = _.pluck(results, 'body');
assert.deepEqual(results.sort(), ['1', '2']);
Expand Down

0 comments on commit ee9ea81

Please sign in to comment.