YUKI Hiroshi
null+****@clear*****
Fri Oct 17 18:01:54 JST 2014
YUKI Hiroshi 2014-10-17 18:01:54 +0900 (Fri, 17 Oct 2014) New Revision: b5cd3a22411a9ea771901a932e3c4c82e820f5c6 https://github.com/droonga/express-droonga/commit/b5cd3a22411a9ea771901a932e3c4c82e820f5c6 Message: Run test steps sequentially Modified files: test/adapter/http.test.js Modified: test/adapter/http.test.js (+3 -11) =================================================================== --- test/adapter/http.test.js 2014-10-17 18:00:34 +0900 (ff81627) +++ test/adapter/http.test.js 2014-10-17 18:01:54 +0900 (23bf4f5) @@ -168,18 +168,14 @@ suite('HTTP Adapter', function() { prefix: '', connections: connections, plugins: [ - api.API_REST, - api.API_SOCKET_IO, - api.API_GROONGA, - api.API_DROONGA + api.API_REST ] }); utils.setupServer(application) .then(function(newServer) { server = newServer; - utils.get('/tables/Store?query=NY'); }) - .then(utils.waitCb(0.1)) + .then(utils.getCb('/tables/Store?query=NY')) .then(function() { assert.equal(1, connection.emitMessageCalledArguments.length); var args = connection.emitMessageCalledArguments[0]; @@ -215,9 +211,6 @@ suite('HTTP Adapter', function() { prefix: '', connections: connections, plugins: [ - api.API_REST, - api.API_SOCKET_IO, - api.API_GROONGA, api.API_DROONGA ] }); @@ -228,9 +221,8 @@ suite('HTTP Adapter', function() { utils.setupServer(application) .then(function(newServer) { server = newServer; - utils.post('/droonga/search', JSON.stringify({ queries: searchQueries })); }) - .then(utils.waitCb(0.1)) + .then(utils.postCb('/droonga/search', JSON.stringify({ queries: searchQueries }))) .then(function() { assert.equal(1, connection.emitMessageCalledArguments.length); var args = connection.emitMessageCalledArguments[0]; -------------- next part -------------- HTML����������������������������... Descargar