[Groonga-commit] groonga/express-kotoumi [master] test: Send fluent packet for the receiver

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Feb 1 11:01:31 JST 2013


YUKI Hiroshi	2013-02-01 11:01:31 +0900 (Fri, 01 Feb 2013)

  New Revision: 99884ee213547ef1ade381f99ebafb32c976d20f
  https://github.com/groonga/express-kotoumi/commit/99884ee213547ef1ade381f99ebafb32c976d20f

  Log:
    test: Send fluent packet for the receiver

  Modified files:
    test/backend-connection.test.js

  Modified: test/backend-connection.test.js (+5 -5)
===================================================================
--- test/backend-connection.test.js    2013-02-01 10:50:12 +0900 (f673b57)
+++ test/backend-connection.test.js    2013-02-01 11:01:31 +0900 (5dd8c2e)
@@ -172,7 +172,7 @@ suite('Connection, basic features', function() {
       body:       'first call'
     };
     callback.takes(message);
-    var packet = { tag: 'test.message', data: message };
+    var packet = ['test.message', Date.now(), message];
     utils.sendPacketTo(packet, utils.testReceivePort)
       .next(function() {
         callback.assert();
@@ -221,7 +221,7 @@ suite('Connection, basic features', function() {
                                           'testResponse',
                                           'first call');
         callback.takes(null, response);
-        packet = { tag: 'test.message', data: response };
+        packet = ['test.message', Date.now(), message];
         return utils.sendPacketTo(packet, utils.testReceivePort);
       })
       .next(function() {
@@ -265,7 +265,7 @@ suite('Connection, basic features', function() {
                                           'first call');
         response.statusCode = 503;
         callback.takes(503, response);
-        packet = { tag: 'test.message', data: response };
+        packet = ['test.message', Date.now(), message];
         return utils.sendPacketTo(packet, utils.testReceivePort);
       })
       .next(function() {
@@ -305,7 +305,7 @@ suite('Connection, basic features', function() {
                                           'testResponse',
                                           'first call');
         callback.takes(null, response);
-        packet = { tag: 'test.message', data: response };
+        packet = ['test.message', Date.now(), message];
         return utils.sendPacketTo(packet, utils.testReceivePort);
       })
       .next(function() {
@@ -383,7 +383,7 @@ suite('Connection, basic features', function() {
 
         response = createReplyEnvelopeFor(message, 'testResponse', 'first call');
         callback.takes(null, response);
-        packet = { tag: 'test.message', data: response };
+        packet = ['test.message', Date.now(), message];
         return utils.sendPacketTo(packet, utils.testReceivePort);
       })
       .next(function() {
-------------- next part --------------
HTML����������������������������...
Download 



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