1
0
Fork 0

Fixed cluster crud tests. They did by accident not run into the untested state thus far.

This commit is contained in:
Michael Hackstein 2016-05-03 15:28:01 +02:00
parent c46a818232
commit be6b8908fa
1 changed files with 6 additions and 2 deletions

View File

@ -329,7 +329,9 @@ function ClusterCrudReplaceSuite () {
fail();
}
catch (err2) {
assertEqual(ERRORS.ERROR_CLUSTER_MUST_NOT_CHANGE_SHARDING_ATTRIBUTES.code, err2.errorNum);
if (err2.errorNum !== ERRORS.ERROR_ARANGO_DOCUMENT_NOT_FOUND.code) {
assertEqual(ERRORS.ERROR_CLUSTER_MUST_NOT_CHANGE_SHARDING_ATTRIBUTES.code, err2.errorNum);
}
}
@ -619,7 +621,9 @@ function ClusterCrudUpdateSuite () {
fail();
}
catch (err2) {
assertEqual(ERRORS.ERROR_CLUSTER_MUST_NOT_CHANGE_SHARDING_ATTRIBUTES.code, err2.errorNum);
if (err2.errorNum !== ERRORS.ERROR_ARANGO_DOCUMENT_NOT_FOUND.code) {
assertEqual(ERRORS.ERROR_CLUSTER_MUST_NOT_CHANGE_SHARDING_ATTRIBUTES.code, err2.errorNum);
}
}
try {