[Groonga-commit] droonga/express-droonga at 69e26f7 [master] Follow connection error handling change

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Apr 7 16:37:01 JST 2014


Kouhei Sutou	2014-04-07 16:37:01 +0900 (Mon, 07 Apr 2014)

  New Revision: 69e26f7f269121b844dba7d89e3b604f3ddd8ea5
  https://github.com/droonga/express-droonga/commit/69e26f7f269121b844dba7d89e3b604f3ddd8ea5

  Message:
    Follow connection error handling change

  Modified files:
    test/droonga-protocol/connection.test.js

  Modified: test/droonga-protocol/connection.test.js (+4 -4)
===================================================================
--- test/droonga-protocol/connection.test.js    2014-04-07 16:00:43 +0900 (cd83c57)
+++ test/droonga-protocol/connection.test.js    2014-04-07 16:37:01 +0900 (d016d2e)
@@ -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;
         })
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index