1
0
Fork 0

Flush ClusterInfo cache in sync. replication tests.

This commit is contained in:
Max Neunhoeffer 2016-05-23 22:53:54 +02:00
parent 7dec299c3a
commit 7ae9cfcd26
1 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,7 @@ function SynchronousReplicationSuite () {
function waitForSynchronousReplication(database) {
console.info("Waiting for synchronous replication to settle...");
global.ArangoClusterInfo.flush();
cinfo = global.ArangoClusterInfo.getCollectionInfo(database, cn);
shards = Object.keys(cinfo.shards);
var count = 0;
@ -80,6 +81,7 @@ function SynchronousReplicationSuite () {
return true;
}
wait(0.5);
global.ArangoClusterInfo.flush();
}
return false;
}