[Groonga-commit] groonga/express-kotoumi [master] Setup server by application instead of returned server (because no server is created by kotoumi())

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Jan 21 14:25:07 JST 2013


YUKI Hiroshi	2013-01-21 14:25:07 +0900 (Mon, 21 Jan 2013)

  New Revision: e1fc343743e59b16e95945c43c43f51b0ec1465c
  https://github.com/groonga/express-kotoumi/commit/e1fc343743e59b16e95945c43c43f51b0ec1465c

  Log:
    Setup server by application instead of returned server (because no server is created by kotoumi())

  Modified files:
    test/express-adaptor.js

  Modified: test/express-adaptor.js (+4 -4)
===================================================================
--- test/express-adaptor.js    2013-01-21 14:23:45 +0900 (db4a0fe)
+++ test/express-adaptor.js    2013-01-21 14:25:07 +0900 (a681a5c)
@@ -31,12 +31,12 @@ suite('Adaption for express application', function() {
 
     test('to the document root', function(done) {
       var application = express();
-      server = application.kotoumi({
+      application.kotoumi({
         prefix:     '',
         connection: 'fake connection',
         handlers:   handlersFactory
       });
-      server = utils.setupServer(server);
+      server = utils.setupServer(application);
 
       utils
         .get('/tables/foobar')
@@ -51,12 +51,12 @@ suite('Adaption for express application', function() {
 
     test('under specified path', function(done) {
       var application = express();
-      server = application.kotoumi({
+      application.kotoumi({
         prefix:     '/path/to/kotoumi',
         connection: 'fake connection',
         handlers:   handlersFactory
       });
-      server = utils.setupServer(server);
+      server = utils.setupServer(application);
 
       utils
         .get('/path/to/kotoumi/tables/foobar')
-------------- next part --------------
HTML����������������������������...
Download 



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