1
0
Fork 0

added test

This commit is contained in:
Jan Steemann 2015-09-07 20:54:51 +02:00
parent 29d37eb346
commit 3e7f4b61ea
1 changed files with 18 additions and 0 deletions

View File

@ -382,6 +382,24 @@ function walSuite () {
catch (err) {
assertEqual(internal.errors.ERROR_ARANGO_DOCUMENT_TOO_LARGE.code, err.errorNum);
}
},
////////////////////////////////////////////////////////////////////////////////
/// @brief test transactions
////////////////////////////////////////////////////////////////////////////////
testTransactions : function () {
var result = internal.wal.transactions();
assertTrue(result.hasOwnProperty("runningTransactions"));
assertTrue(typeof result.runningTransactions === "number");
assertTrue(result.runningTransactions >= 0);
assertTrue(result.hasOwnProperty("minLastCollected"));
assertTrue(result.minLastCollected === null || typeof result.minLastCollected === "string");
assertTrue(result.hasOwnProperty("minLastSealed"));
assertTrue(result.minLastSealed === null || typeof result.minLastSealed === "string");
}
};