Skip to content

Commit 8095b0a

Browse files
authored
if we catch an error, we shouldn't return 0. (#61)
* if we catch an error, we shouldn't return 0. * fix GLOBAL, variable referencing * remove debug throw
1 parent 4246228 commit 8095b0a

23 files changed

+233
-235
lines changed

simple/run-big-all-runs1.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function main () {
2-
global.returnValue = 0;
2+
GLOBAL.returnValue = 0;
33
require("./simple/test").test({
44
outputCsv: true,
55
big: true,
@@ -16,7 +16,7 @@ function main () {
1616
subqueryTests: true,
1717
mditests: true
1818
});
19-
return global.returnValue;
19+
return GLOBAL.returnValue;
2020
}
2121
if (typeof arango !== "undefined") {
2222
process.exit(main());

simple/run-big-all.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function main () {
2-
global.returnValue = 0;
2+
GLOBAL.returnValue = 0;
33
require("./simple/test").test({
44
outputCsv: true,
55
big: true,
@@ -16,7 +16,7 @@ function main () {
1616
subqueryTests: true,
1717
mditests: true
1818
});
19-
return global.returnValue;
19+
return GLOBAL.returnValue;
2020
}
2121
if (typeof arango !== "undefined") {
2222
process.exit(main());

simple/run-big-crud.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
function main () {
2-
global.returnValue = 0;
2+
GLOBAL.returnValue = 0;
33
require("./simple/test").test({
44
outputCsv: true,
55
big: true,
66
crud: true
77
});
8-
return global.returnValue;
8+
return GLOBAL.returnValue;
99
}
1010
if (typeof arango !== "undefined") {
1111
process.exit(main());

simple/run-mdi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function main () {
2-
global.returnValue = 0;
2+
GLOBAL.returnValue = 0;
33
require("./simple-performance-test/simple/test").test({
44
outputCsv: false,
55
medium: true,
@@ -15,7 +15,7 @@ function main () {
1515
subqueryTests: false,
1616
mditests: true
1717
});
18-
return global.returnValue;
18+
return GLOBAL.returnValue;
1919
}
2020
if (typeof arango !== "undefined") {
2121
process.exit(main());

simple/run-medium-all-runs1.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function main () {
2-
global.returnValue = 0;
2+
GLOBAL.returnValue = 0;
33
require("./simple/test").test({
44
outputCsv: true,
55
medium: true,
@@ -16,7 +16,7 @@ function main () {
1616
subqueryTests: true,
1717
mditests: true
1818
});
19-
return global.returnValue;
19+
return GLOBAL.returnValue;
2020
}
2121
if (typeof arango !== "undefined") {
2222
process.exit(main());

simple/run-medium-all.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function main () {
2-
global.returnValue = 0;
2+
GLOBAL.returnValue = 0;
33
require("./simple/test").test({
44
outputCsv: true,
55
medium: true,
@@ -16,7 +16,7 @@ function main () {
1616
subqueryTests: true,
1717
mditests: true
1818
});
19-
return global.returnValue;
19+
return GLOBAL.returnValue;
2020
}
2121
if (typeof arango !== "undefined") {
2222
process.exit(main());

simple/run-medium-oneshard-regular-collections.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
function main () {
2-
global.returnValue = 0;
2+
GLOBAL.returnValue = 0;
33
require("./simple/test").test({
44
medium: true,
55
oneshardTests: true,
66
numberOfShards: 5
77
});
8-
return global.returnValue;
8+
return GLOBAL.returnValue;
99
}
1010
if (typeof arango !== "undefined") {
1111
process.exit(main());

simple/run-medium-oneshard.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
function main () {
2-
global.returnValue = 0;
2+
GLOBAL.returnValue = 0;
33
require("./simple/test").test({
44
medium: true,
55
oneshardTests: true
66
});
7-
return global.returnValue;
7+
return GLOBAL.returnValue;
88
}
99
if (typeof arango !== "undefined") {
1010
process.exit(main());

simple/run-medium-subquery.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
function main () {
2-
global.returnValue = 0;
2+
GLOBAL.returnValue = 0;
33
require("./simple/test").test({
44
medium: true,
55
subqueryTests: true
66
});
7-
return global.returnValue;
7+
return GLOBAL.returnValue;
88
}
99
if (typeof arango !== "undefined") {
1010
process.exit(main());

simple/run-small-all-junit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function main () {
2-
global.returnValue = 0;
2+
GLOBAL.returnValue = 0;
33
require("./simple/test").test({
44
outputXml: true,
55
xmlDirectory: "xml",
@@ -15,7 +15,7 @@ function main () {
1515
crudSearch: true,
1616
mditests: true
1717
});
18-
return global.returnValue;
18+
return GLOBAL.returnValue;
1919
}
2020
if (typeof arango !== "undefined") {
2121
process.exit(main());

0 commit comments

Comments
 (0)