ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject incubator-ignite git commit: #nodejs: debug
Date Sun, 07 Jun 2015 21:11:28 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-nodejs fe198856a -> 83112f876


#nodejs: 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/83112f87
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/83112f87
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/83112f87

Branch: refs/heads/ignite-nodejs
Commit: 83112f876d54cf191593b72e93714a81addd62b3
Parents: fe19885
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Mon Jun 8 00:11:19 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Mon Jun 8 00:11:19 2015 +0300

----------------------------------------------------------------------
 .../java/org/apache/ignite/internal/NodeJsAbstractTest.java  | 2 +-
 modules/nodejs/src/test/nodejs/test_utils.js                 | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/83112f87/modules/nodejs/src/test/java/org/apache/ignite/internal/NodeJsAbstractTest.java
----------------------------------------------------------------------
diff --git a/modules/nodejs/src/test/java/org/apache/ignite/internal/NodeJsAbstractTest.java
b/modules/nodejs/src/test/java/org/apache/ignite/internal/NodeJsAbstractTest.java
index 05cd6ef..3600fc6 100644
--- a/modules/nodejs/src/test/java/org/apache/ignite/internal/NodeJsAbstractTest.java
+++ b/modules/nodejs/src/test/java/org/apache/ignite/internal/NodeJsAbstractTest.java
@@ -49,7 +49,7 @@ public class NodeJsAbstractTest extends GridCommonAbstractTest {
      * @param fileName Node JS file name.
      */
     protected NodeJsAbstractTest(String fileName) {
-        this.fileName = fileName;
+        this.fileName = getNodeJsTestDir()  + fileName;
     }
 
     /** {@inheritDoc} */

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/83112f87/modules/nodejs/src/test/nodejs/test_utils.js
----------------------------------------------------------------------
diff --git a/modules/nodejs/src/test/nodejs/test_utils.js b/modules/nodejs/src/test/nodejs/test_utils.js
index f1149ac..93a08ce 100644
--- a/modules/nodejs/src/test/nodejs/test_utils.js
+++ b/modules/nodejs/src/test/nodejs/test_utils.js
@@ -111,11 +111,11 @@ TestUtils.testDone = function() {
  */
 TestUtils.runTest = function() {
     var fileName = process.argv[2].toString().trim();
-    var Test = require("./" + fileName).TestIgnition;
+    var Test = require(fileName);
+    Test = Test[Object.keys(Test)[0]];
+    console.log(Test);
     var functionName = process.argv[3].toString().trim();
-    for (var obj in Test) {
-        console.log("vvvvvvvvv " + obj);
-    }
+
     if (!Test[functionName]) {
         console.log("node js test failed: function with name " + functionName + " not found");
         return;


Mime
View raw message