1
0
Fork 0

ahhh jslint

This commit is contained in:
Andreas Streichardt 2017-04-27 17:16:52 +02:00
parent bb3df8cc84
commit 9ad98ad8d3
1 changed files with 5 additions and 6 deletions

View File

@ -1,5 +1,4 @@
/*jshint globalstrict:false, strict:false */
/*global assertTrue, assertEqual */
/*global describe, it, ArangoAgency, afterEach */
////////////////////////////////////////////////////////////////////////////////
/// @brief cluster collection creation tests
@ -38,7 +37,7 @@ var db = require("org/arangodb").db;
describe('Cluster collection creation options', function() {
afterEach(function() {
db._drop('testi');
})
});
it('should wait for all followers to get in sync when waiting for replication', function() {
db._create("testi", {replicationFactor: 2, numberOfShards: 16}, {waitForSyncReplication: true});
let current = ArangoAgency.get('Current/Collections/_system');
@ -48,14 +47,14 @@ describe('Cluster collection creation options', function() {
return result;
}
if (collectionDef.name == 'testi') {
if (collectionDef.name === 'testi') {
return collectionDef.id;
}
}, undefined);
Object.values(current.arango.Current.Collections['_system'][collectionId]).forEach(entry => {
expect(entry.servers).to.have.lengthOf(2);
})
});
});
it('should not wait for all followers to get in sync when waiting for replication', function() {
db._create("testi", {replicationFactor: 2, numberOfShards: 16}, {waitForSyncReplication: false});
@ -66,7 +65,7 @@ describe('Cluster collection creation options', function() {
return result;
}
if (collectionDef.name == 'testi') {
if (collectionDef.name === 'testi') {
return collectionDef.id;
}
}, undefined);