[Groonga-commit] droonga/express-droonga at 344a9e4 [master] Create stub envelope without "replyTo" by default, with the utils.createExpectedEnvelope

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Oct 16 16:02:18 JST 2013


YUKI Hiroshi	2013-10-16 16:02:18 +0900 (Wed, 16 Oct 2013)

  New Revision: 344a9e424c25251aac979b14f07935c5af06c844
  https://github.com/droonga/express-droonga/commit/344a9e424c25251aac979b14f07935c5af06c844

  Message:
    Create stub envelope without "replyTo" by default, with the utils.createExpectedEnvelope

  Modified files:
    test/test-utils.js

  Modified: test/test-utils.js (+2 -1)
===================================================================
--- test/test-utils.js    2013-10-16 16:01:56 +0900 (25584c7)
+++ test/test-utils.js    2013-10-16 16:02:18 +0900 (0642115)
@@ -315,11 +315,12 @@ exports.createEnvelope = createEnvelope;
 
 function createExpectedEnvelope(type, body, options) {
   var envelope = createEnvelope(type, body);
-  envelope.replyTo = new RegExp('^' + envelope.replyTo + '\\?connection_id=\\d+$');
   envelope.id = TypeOf('string');
   envelope.date = InstanceOf(Date);
   if (options && options.dataset)
     envelope.dataset = options.dataset;
+  if (options && options.requireReply)
+    envelope.replyTo = new RegExp('^' + envelope.replyTo + '\\?connection_id=\\d+$');
   return envelope;
 }
 exports.createExpectedEnvelope = createExpectedEnvelope;
-------------- next part --------------
HTML����������������������������...
Download 



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