Navigation Menu

Skip to content

Commit

Permalink
Follow connection error handling change
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 7, 2014
1 parent a4f348b commit 69e26f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/droonga-protocol/connection.test.js
Expand Up @@ -525,12 +525,12 @@ suite('Connection', function() {
.next(function() {
var deferred = new Deferred();

connection.on('error', function(error) {
lastError = error
var callback = function(errorCode, response) {
lastError = response.body.detail;
deferred.call();
});
};

connection.emitMessage('type2', { message: true });
connection.emitMessage('type2', { message: true }, callback);

return deferred;
})
Expand Down

0 comments on commit 69e26f7

Please sign in to comment.