Permalink
Browse files

[tests] don't ignore errors

Seems to have caused the timeout in #164
  • Loading branch information...
1 parent b40c636 commit eef88a7e84bbc6c0334e575617f77257cef0e191 @fb55 fb55 committed Aug 16, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 test/transports/transport.js
@@ -66,7 +66,10 @@ module.exports = function (transport, options) {
if (!--j) cb(null, results);
});
- stream.on('error', function () {});
+ stream.on('error', function (err) {
+ j = -1; //don't call the callback again
+ cb(err);
+ });
while (i--) logger.log('info', 'hello world ' + i, {});
},

0 comments on commit eef88a7

Please sign in to comment.