mirror of https://gitee.com/bigwinds/arangodb
jslint && cppcheck
This commit is contained in:
parent
9d3bbd1d89
commit
e495b5fb6c
|
@ -56,9 +56,8 @@ inline std::size_t validateAndCount(char const* vpStart,
|
|||
validationOptions.validateUtf8Strings = true;
|
||||
VPackValidator validator(&validationOptions);
|
||||
|
||||
std::size_t numPayloads = 0;
|
||||
|
||||
try {
|
||||
std::size_t numPayloads = 0;
|
||||
// check for slice start to the end of Chunk
|
||||
// isSubPart allows the slice to be shorter than the checked buffer.
|
||||
do {
|
||||
|
|
|
@ -35,8 +35,6 @@ var jsunity = require('jsunity');
|
|||
|
||||
|
||||
function runSetup () {
|
||||
require("console").log("Hund");
|
||||
|
||||
db._drop('UnitTestsRecovery');
|
||||
db._create('UnitTestsRecovery');
|
||||
|
||||
|
@ -44,7 +42,7 @@ function runSetup () {
|
|||
db._create('UnitTestsRecovery');
|
||||
} catch (e) {
|
||||
// This intentionally should fail!
|
||||
if (internal.errors.ERROR_ARANGO_DUPLICATE_NAME.code == e.errorNum) {
|
||||
if (internal.errors.ERROR_ARANGO_DUPLICATE_NAME.code === e.errorNum) {
|
||||
// Only this is a valid return code from the server
|
||||
return 0;
|
||||
}
|
||||
|
@ -62,9 +60,8 @@ function recoverySuite () {
|
|||
tearDown: function () {},
|
||||
|
||||
testCollectionDuplicateName: function () {
|
||||
require("console").log("Kartze");
|
||||
var c = db._collection('UnitTestsRecovery');
|
||||
assertTrue(c != null && c != undefined);
|
||||
assertTrue(c !== null && c !== undefined);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue