[Groonga-commit] groonga/express-kotoumi [master] Use given connection for testing

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Jan 16 17:05:09 JST 2013


YUKI Hiroshi	2013-01-16 17:05:09 +0900 (Wed, 16 Jan 2013)

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

  Log:
    Use given connection for testing

  Modified files:
    lib/index.js

  Modified: lib/index.js (+1 -1)
===================================================================
--- lib/index.js    2013-01-16 17:01:42 +0900 (3b31273)
+++ lib/index.js    2013-01-16 17:05:09 +0900 (dd80628)
@@ -4,7 +4,7 @@ var builders = require('./builders');
 
 express.application.kotoumi = function(params) {
   params = params || {};
-  var connection = new Connection(params);
+  var connection = params.connection || new Connection(params);
 
   var prefix = params.prefix || '';
   prefix = prefix.replace(/\/$/, '');
-------------- next part --------------
HTML����������������������������...
Télécharger 



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