You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2015/06/08 00:32:45 UTC

incubator-ignite git commit: #nodejs: remove useless debug

Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-nodejs e85cb687d -> 15f07e141


#nodejs: remove useless debug


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/15f07e14
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/15f07e14
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/15f07e14

Branch: refs/heads/ignite-nodejs
Commit: 15f07e1416ad71c3fa19257cda90d989b5b915b3
Parents: e85cb68
Author: ivasilinets <iv...@gridgain.com>
Authored: Mon Jun 8 01:32:39 2015 +0300
Committer: ivasilinets <iv...@gridgain.com>
Committed: Mon Jun 8 01:32:39 2015 +0300

----------------------------------------------------------------------
 modules/nodejs/src/test/nodejs/test_ignition.js | 14 +++-----------
 modules/nodejs/src/test/nodejs/test_runner.js   | 12 +++---------
 2 files changed, 6 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/15f07e14/modules/nodejs/src/test/nodejs/test_ignition.js
----------------------------------------------------------------------
diff --git a/modules/nodejs/src/test/nodejs/test_ignition.js b/modules/nodejs/src/test/nodejs/test_ignition.js
index 14b3209..baa9615 100644
--- a/modules/nodejs/src/test/nodejs/test_ignition.js
+++ b/modules/nodejs/src/test/nodejs/test_ignition.js
@@ -1,12 +1,7 @@
-exports = module.exports = {};
-
-function TestIgnition () {
-}
-
 var TestUtils = require("./test_utils").TestUtils;
 var Ignition = require(TestUtils.scriptPath() + "ignition").Ignition;
 
-TestIgnition.test_ignition_fail = function ()  {
+exports.test_ignition_fail = function ()  {
     Ignition.start(['127.0.0.3:9091', '127.0.0.1:9092'], onConnect);
 
     function onConnect(error, server) {
@@ -23,7 +18,7 @@ TestIgnition.test_ignition_fail = function ()  {
     }
 }
 
-TestIgnition.ignition_start_success = function() {
+exports.ignition_start_success = function() {
     Ignition.start(['127.0.0.1:9095'], onConnect);
 
     function onConnect(error, server) {
@@ -34,7 +29,4 @@ TestIgnition.ignition_start_success = function() {
         }
         TestUtils.testDone();
     }
-}
-
-
-exports.TestIgnition = TestIgnition;
\ No newline at end of file
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/15f07e14/modules/nodejs/src/test/nodejs/test_runner.js
----------------------------------------------------------------------
diff --git a/modules/nodejs/src/test/nodejs/test_runner.js b/modules/nodejs/src/test/nodejs/test_runner.js
index 5ff579b..6f2cf2b 100644
--- a/modules/nodejs/src/test/nodejs/test_runner.js
+++ b/modules/nodejs/src/test/nodejs/test_runner.js
@@ -14,21 +14,15 @@ TestRunner.runTest = function() {
 
     console.log("FileName " + fileName);
 
-    var Test = require("./" + fileName);
-
-    console.log("Test : " + Object.keys(Test))
-
-    Test = Test[Object.keys(Test)[0]];
-
-    console.log("Result test: " + Test);
+    var test = require("./" + fileName);
 
     var functionName = process.argv[3].toString().trim();
 
-    if (!Test[functionName]) {
+    if (!test[functionName]) {
         console.log("node js test failed: function with name " + functionName + " not found");
         return;
     }
-    Test[functionName]();
+    test[functionName]();
 }