mirror of https://gitee.com/bigwinds/arangodb
reset values on test-start, module load may have happened before
This commit is contained in:
parent
6d9a84cbb1
commit
3164913ab2
|
@ -44,8 +44,6 @@ var TEARDOWNS = 0;
|
|||
var TOTALSETUPS = 0;
|
||||
var TOTALTEARDOWNS = 0;
|
||||
|
||||
|
||||
|
||||
var jsUnity = require('./jsunity/jsunity').jsUnity;
|
||||
var STARTTEST = 0.0;
|
||||
var ENDTEST = 0.0;
|
||||
|
@ -345,6 +343,28 @@ function WriteDone (suiteName) {
|
|||
// //////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
function RunTest (path, outputReply, filter) {
|
||||
// re-reset our globlas, on module loading may be cached.
|
||||
TOTAL = 0;
|
||||
PASSED = 0;
|
||||
FAILED = 0;
|
||||
DURATION = 0;
|
||||
RESULTS = {};
|
||||
COMPLETE = {};
|
||||
|
||||
SETUPS = 0;
|
||||
TEARDOWNS = 0;
|
||||
|
||||
TOTALSETUPS = 0;
|
||||
TOTALTEARDOWNS = 0;
|
||||
STARTTEST = 0.0;
|
||||
ENDTEST = 0.0;
|
||||
STARTSUITE = 0.0;
|
||||
ENDTEARDOWN = 0.0;
|
||||
STARTTEST = 0.0;
|
||||
ENDTEST = 0.0;
|
||||
STARTSUITE = 0.0;
|
||||
ENDTEARDOWN = 0.0;
|
||||
|
||||
var content;
|
||||
var f;
|
||||
|
||||
|
|
Loading…
Reference in New Issue