YUKI Hiroshi
null+****@clear*****
Tue Jan 29 18:13:03 JST 2013
YUKI Hiroshi 2013-01-29 18:13:03 +0900 (Tue, 29 Jan 2013) New Revision: 96b5f71e00969a047922e0cffdedb43a2966febd https://github.com/groonga/express-kotoumi/commit/96b5f71e00969a047922e0cffdedb43a2966febd Log: Specify max retry count and the delay for the backend connection Modified files: test/backend-connection.test.js Modified: test/backend-connection.test.js (+7 -3) =================================================================== --- test/backend-connection.test.js 2013-01-29 18:09:40 +0900 (1ca00e7) +++ test/backend-connection.test.js 2013-01-29 18:13:03 +0900 (c8cd6d2) @@ -79,7 +79,9 @@ suite('Connection, basic features', function() { tag: 'test', hostName: 'localhost', port: utils.testSendPort, - receivePort: utils.testReceivePort + receivePort: utils.testReceivePort, + maxRetyrCount: 3, + retryDelay: 0 }); done(); }); @@ -408,7 +410,9 @@ suite('Connection, to backend', function() { connection = new Connection({ tag: 'test', hostName: 'localhost', - port: utils.testSendPort + port: utils.testSendPort, + maxRetyrCount: 3, + retryDelay: 0 }); done(); }); @@ -464,7 +468,7 @@ suite('Connection, to backend', function() { restartedBackend = newBackend; connection.emitMessage('test', { message: true }); }) - .wait(0.01) + .wait(0.1) .next(function() { assert.equal(restartedBackend.received.length, 1, -------------- next part -------------- HTML����������������������������... Télécharger