[Groonga-commit] droonga/express-droonga at 3be9399 [master] Remove obsolete tests

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Nov 7 14:08:55 JST 2014


YUKI Hiroshi	2014-11-07 14:08:55 +0900 (Fri, 07 Nov 2014)

  New Revision: 3be9399dd1a47cfe913c683e32208c73bad4fad1
  https://github.com/droonga/express-droonga/commit/3be9399dd1a47cfe913c683e32208c73bad4fad1

  Message:
    Remove obsolete tests

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

  Modified: test/droonga-protocol/connection-pool.test.js (+0 -67)
===================================================================
--- test/droonga-protocol/connection-pool.test.js    2014-11-07 12:09:06 +0900 (d6fd115)
+++ test/droonga-protocol/connection-pool.test.js    2014-11-07 14:08:55 +0900 (84db49e)
@@ -177,71 +177,4 @@ suite('ConnectionPool', function() {
                         false]);
     });
   });
-
-  suite('communication with the backend', function() {
-    var connectionPool;
-
-    setup(function() {
-      connectionPool = new ConnectionPool({
-        hostNames: [
-          '127.0.0.1'
-        ],
-        connectionClass: utils.ConnectionStub
-      });
-      connectionPool.get().addResult({
-        version: 2,
-        datasets: {
-          main: {
-            replicas: [
-              singleVolumeWithHostName('127.0.0.2'),
-              singleVolumeWithHostName('127.0.0.3')
-            ]
-          }
-        }
-      });
-    });
-
-    teardown(function() {
-      if (connectionPool) {
-        connectionPool.closeAll();
-        connectionPool = undefined;
-      }
-    });
-
-    test('fetchCatalog', function(done) {
-      connectionPool.fetchCatalog()
-        .then(function(catalog) {
-          assert.deepEqual(catalog.allHostNames,
-                           ['127.0.0.2',
-                            '127.0.0.3']);
-          done();
-        })
-        .catch(done);
-    });
-
-    test('getHostNamesFromCatalog', function(done) {
-      connectionPool.getHostNamesFromCatalog()
-        .then(function(hostNames) {
-          assert.deepEqual(hostNames,
-                           ['127.0.0.2',
-                            '127.0.0.3']);
-          done();
-        })
-        .catch(done);
-    });
-
-    test('updateHostNamesFromCatalog', function(done) {
-      connectionPool.updateHostNamesFromCatalog()
-        .then(function(hostNames) {
-          assert.deepEqual(hostNames,
-                           ['127.0.0.2',
-                            '127.0.0.3']);
-          assert.deepEqual(connectionPool.hostNames,
-                           ['127.0.0.2',
-                            '127.0.0.3']);
-          done();
-        })
-        .catch(done);
-    });
-  });
 });
-------------- next part --------------
HTML����������������������������...
下載 



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