Skip to content

Commit 7fb4bc7

Browse files
committed
Merge branch 'CrypticSwarm-dont-silience-test-errors'
2 parents 4672479 + f9916ed commit 7fb4bc7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -867,11 +867,12 @@ tests.reconnect_select_db_after_pubsub = function() {
867867

868868
tests.select_error_emits_if_no_callback = function () {
869869
var name = "select_error_emits_if_no_callback";
870-
871-
client.on('error', with_timeout(name, function (err) {
870+
var handler = with_timeout(name, function (err) {
872871
require_error(name)(err);
872+
client.removeListener('error', handler);
873873
next(name);
874-
}, 500));
874+
}, 500);
875+
client.on('error', handler);
875876
client.select(9999);
876877
};
877878

0 commit comments

Comments
 (0)