[Groonga-commit] droonga/express-droonga at 1388c90 [master] Simplify: remove needless response packet

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Apr 21 10:05:46 JST 2015


YUKI Hiroshi	2015-04-21 10:05:46 +0900 (Tue, 21 Apr 2015)

  New Revision: 1388c90c076be57a1cedfd173c402f2cc259ab99
  https://github.com/droonga/express-droonga/commit/1388c90c076be57a1cedfd173c402f2cc259ab99

  Message:
    Simplify: remove needless response packet

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

  Modified: test/droonga-protocol/connection.test.js (+1 -4)
===================================================================
--- test/droonga-protocol/connection.test.js    2015-04-21 09:58:44 +0900 (54c685a)
+++ test/droonga-protocol/connection.test.js    2015-04-21 10:05:46 +0900 (aecc887)
@@ -402,7 +402,6 @@ suite('Connection', function() {
                                                Math.random(),
                                                callback,
                                                { timeout: 20 });
-          var response = utils.createReplyEnvelope(message, 'ignored', Math.random());
           callback.takes(Connection.ERROR_GATEWAY_TIMEOUT, null);
 
           utils.wait(0.01)
@@ -415,9 +414,7 @@ suite('Connection', function() {
                 'response listeners should be registered'
               );
             })
-            .then(utils.waitCb(0.02))
-            .then(utils.sendPacketToCb(utils.createPacket(response), utils.testReceivePort))
-            .then(utils.waitCb(0.01))
+            .then(utils.waitCb(0.03))
             .then(function() {
               assert.equal(
                 connection.listeners('reply:' + message.id).length,
-------------- next part --------------
HTML����������������������������...
Descargar 



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