[Groonga-commit] groonga/express-kotoumi [master] test: Close the connection if there is "application"

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Feb 15 15:57:51 JST 2013


YUKI Hiroshi	2013-02-15 15:57:51 +0900 (Fri, 15 Feb 2013)

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

  Log:
    test: Close the connection if there is "application"

  Modified files:
    test/test-utils.js

  Modified: test/test-utils.js (+4 -1)
===================================================================
--- test/test-utils.js    2013-02-15 15:54:18 +0900 (cc42647)
+++ test/test-utils.js    2013-02-15 15:57:51 +0900 (1ae9d9a)
@@ -215,7 +215,10 @@ function teardownApplication(params) {
     params.backend.close();
     params.backend = undefined;
   }
-  if (params.connection) {
+  if (params.application && params.application.connection) {
+    params.application.connection.close();
+    params.application = undefined;
+  } else if (params.connection) {
     params.connection.close();
     params.connection = undefined;
   }
-------------- next part --------------
HTML����������������������������...
Download 



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