[Groonga-commit] groonga/express-droonga [master] Define the tag for testing as a part of the test utilities

アーカイブの一覧に戻る

YUKI Hiroshi null+****@clear*****
Wed Mar 6 11:25:31 JST 2013


YUKI Hiroshi	2013-03-06 11:25:31 +0900 (Wed, 06 Mar 2013)

  New Revision: 375765d7b9640d65d2ac771203aa7d6c6b3a3ef4
  https://github.com/groonga/express-droonga/commit/375765d7b9640d65d2ac771203aa7d6c6b3a3ef4

  Log:
    Define the tag for testing as a part of the test utilities

  Modified files:
    test/backend-connection.test.js
    test/frontend-socket.io-adaptor.test.js
    test/test-utils.js

  Modified: test/backend-connection.test.js (+1 -1)
===================================================================
--- test/backend-connection.test.js    2013-03-04 16:02:57 +0900 (5f18907)
+++ test/backend-connection.test.js    2013-03-06 11:25:31 +0900 (7ed8bd8)
@@ -396,7 +396,7 @@ suite('Connection', function() {
         .next(function(newBackend) {
           backend = newBackend;
           connection = new Connection({
-            tag:      'test',
+            tag:      utils.testTag,
             hostName: 'localhost',
             port:     utils.testSendPort,
             maxRetyrCount: 3,

  Modified: test/frontend-socket.io-adaptor.test.js (+4 -4)
===================================================================
--- test/frontend-socket.io-adaptor.test.js    2013-03-04 16:02:57 +0900 (f1c4957)
+++ test/frontend-socket.io-adaptor.test.js    2013-03-06 11:25:31 +0900 (276ed5f)
@@ -143,7 +143,7 @@ suite('Socket.IO API', function() {
             connection = result.connection;
             backend    = result.backend;
             socketIoAdaptor.register(result.application, server, {
-              tag:      'test',
+              tag:      utils.testTag,
               connection: connection,
               plugins: [testPlugin]
             });
@@ -229,7 +229,7 @@ suite('Socket.IO API', function() {
           connection = result.connection;
           backend    = result.backend;
           socketIoAdaptor.register(result.application, server, {
-            tag:      'test',
+            tag:      utils.testTag,
             connection: connection,
             plugins: [testPlugin]
           });
@@ -306,7 +306,7 @@ suite('Socket.IO API', function() {
             connection = result.connection;
             backend    = result.backend;
             socketIoAdaptor.register(result.application, server, {
-              tag:      'test',
+              tag:      utils.testTag,
               connection: connection,
               plugins: [testPlugin]
             });
@@ -387,7 +387,7 @@ suite('Socket.IO API', function() {
           connection = result.connection;
           backend    = result.backend;
           socketIoAdaptor.register(result.application, server, {
-            tag:      'test',
+            tag:      utils.testTag,
             connection: connection,
             plugins: [testPlugin]
           });

  Modified: test/test-utils.js (+2 -1)
===================================================================
--- test/test-utils.js    2013-03-04 16:02:57 +0900 (1ae9d9a)
+++ test/test-utils.js    2013-03-06 11:25:31 +0900 (485be2d)
@@ -15,6 +15,7 @@ var Connection = require('../lib/backend/connection').Connection;
 var testSendPort = exports.testSendPort = 3333;
 var testReceivePort = exports.testReceivePort = 3334;
 var testServerPort = exports.testServerPort = 3335;
+var testTag = exports.testTag = 'test';
 
 
 function connectTo(port) {
@@ -191,7 +192,7 @@ function setupApplication() {
     .next(function(newBackend) {
       backend = newBackend;
       var connection = new Connection({
-        tag:      'test',
+        tag:      testTag,
         hostName: 'localhost',
         port:     testSendPort,
         receivePort: testReceivePort,
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る