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 12:12:27 UTC
[9/9] incubator-ignite git commit: #nodejs: small fixes.
#nodejs: small fixes.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/7e94dedd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/7e94dedd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/7e94dedd
Branch: refs/heads/ignite-nodejs
Commit: 7e94dedda0d10e8aa8b18e6b6ad43e23f83dfd41
Parents: 92d677c
Author: ivasilinets <iv...@gridgain.com>
Authored: Mon Jun 8 13:12:09 2015 +0300
Committer: ivasilinets <iv...@gridgain.com>
Committed: Mon Jun 8 13:12:09 2015 +0300
----------------------------------------------------------------------
modules/nodejs/src/test/js/test_ignition.js | 2 +-
modules/nodejs/src/test/js/test_put_get.js | 2 +-
modules/nodejs/src/test/js/test_runner.js | 24 ++++++++++++++++++++----
3 files changed, 22 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/7e94dedd/modules/nodejs/src/test/js/test_ignition.js
----------------------------------------------------------------------
diff --git a/modules/nodejs/src/test/js/test_ignition.js b/modules/nodejs/src/test/js/test_ignition.js
index e1e18cc..9d90dd7 100644
--- a/modules/nodejs/src/test/js/test_ignition.js
+++ b/modules/nodejs/src/test/js/test_ignition.js
@@ -36,7 +36,7 @@ testIgnitionFail = function () {
}
ignitionStartSuccess = function() {
- Ignition.start(['127.0.0.0:9090', '127.0.0.1:9090'], onConnect);
+ Ignition.start(['127.0.0.0:9095', '127.0.0.1:9095'], onConnect);
function onConnect(error, server) {
if (error) {
http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/7e94dedd/modules/nodejs/src/test/js/test_put_get.js
----------------------------------------------------------------------
diff --git a/modules/nodejs/src/test/js/test_put_get.js b/modules/nodejs/src/test/js/test_put_get.js
index af3695b..7e9f018 100644
--- a/modules/nodejs/src/test/js/test_put_get.js
+++ b/modules/nodejs/src/test/js/test_put_get.js
@@ -20,7 +20,7 @@ var Cache = require(TestUtils.scriptPath() + "cache").Cache;
var Server = require(TestUtils.scriptPath() + "server").Server;
testPutGet = function() {
- var server = new Server('127.0.0.1', 9090);
+ var server = new Server('127.0.0.1', 9095);
var cache = new Cache(server, "mycache");
cache.put("key", "6", onPut.bind(null, cache));
}
http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/7e94dedd/modules/nodejs/src/test/js/test_runner.js
----------------------------------------------------------------------
diff --git a/modules/nodejs/src/test/js/test_runner.js b/modules/nodejs/src/test/js/test_runner.js
index 6f2cf2b..ab4490a 100644
--- a/modules/nodejs/src/test/js/test_runner.js
+++ b/modules/nodejs/src/test/js/test_runner.js
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
/**
* Create instance of TestUtils
*
@@ -14,16 +31,15 @@ TestRunner.runTest = function() {
console.log("FileName " + fileName);
- var test = require("./" + fileName);
+ require("./" + fileName);
var functionName = process.argv[3].toString().trim();
- if (!test[functionName]) {
+ if (!global[functionName]) {
console.log("node js test failed: function with name " + functionName + " not found");
return;
}
- test[functionName]();
+ global[functionName]();
}
-
TestRunner.runTest();
\ No newline at end of file