You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2017/07/18 19:42:59 UTC
[couchdb] branch master updated: Fix cancellation race in
replication.js tests
This is an automated email from the ASF dual-hosted git repository.
vatamane pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/master by this push:
new 27147cd Fix cancellation race in replication.js tests
27147cd is described below
commit 27147cdd64932967719969978011f60c6c1db8b3
Author: Nick Vatamaniuc <va...@apache.org>
AuthorDate: Tue Jul 18 15:24:55 2017 -0400
Fix cancellation race in replication.js tests
Replication cancelation doesn't immediately update active tasks. Instead, use
the new `waitReplicationTaskStop(rep_id)` function to propery wait for the
task status.
Issue #634
---
test/javascript/tests/replication.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/javascript/tests/replication.js b/test/javascript/tests/replication.js
index b6f2c4e..ba586b4 100644
--- a/test/javascript/tests/replication.js
+++ b/test/javascript/tests/replication.js
@@ -1841,7 +1841,7 @@ couchTests.replication = function(debug) {
headers: {"Content-Type": "application/json"}
});
TEquals(200, xhr.status, "Replication cancel request success");
-
+ waitReplicationTaskStop(repId);
task = getTask(repId);
TEquals(null, task, "Replication was canceled");
--
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <co...@couchdb.apache.org>'].