From 3a0926ba6ac44af6e6bbe743c45d2e53fefcadfa Mon Sep 17 00:00:00 2001 From: jsteemann Date: Tue, 2 May 2017 10:29:29 +0200 Subject: [PATCH] make replication test more deterministic --- js/server/tests/replication/replication-ongoing.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/js/server/tests/replication/replication-ongoing.js b/js/server/tests/replication/replication-ongoing.js index 88d8cb2887..ca7f9bc238 100644 --- a/js/server/tests/replication/replication-ongoing.js +++ b/js/server/tests/replication/replication-ongoing.js @@ -170,9 +170,6 @@ function ReplicationSuite() { internal.wait(0.5, false); continue; } - if (!r) { - break; - } var slaveState = replication.applier.state(); @@ -574,7 +571,7 @@ function ReplicationSuite() { }); state.task = require("@arangodb/tasks").register({ - name: "replication-test", + name: "replication-test-async", command: String(func), params: { cn: cn @@ -598,7 +595,7 @@ function ReplicationSuite() { state.count = collectionCount(cn); assertEqual(20, state.count); connectToSlave(); - return false; + return true; } }, @@ -649,7 +646,7 @@ function ReplicationSuite() { }); state.task = require("@arangodb/tasks").register({ - name: "replication-test", + name: "replication-test-async-with-restart", command: String(func), params: { cn: cn @@ -680,7 +677,7 @@ function ReplicationSuite() { state.count = collectionCount(cn); assertEqual(20, state.count); connectToSlave(); - return false; + return true; } },