diff options
author | Nick Vatamaniuc <vatamane@apache.org> | 2017-07-18 15:24:55 -0400 |
---|---|---|
committer | Nick Vatamaniuc <nickva@users.noreply.github.com> | 2017-07-18 15:42:56 -0400 |
commit | 27147cdd64932967719969978011f60c6c1db8b3 (patch) | |
tree | 5847e3daf6e87c4e5718a0d473d7a4b14a92ef2b | |
parent | 0f46cdeceb4d8c12a7e95ef110b381fdc6c3b2da (diff) | |
download | couchdb-27147cdd64932967719969978011f60c6c1db8b3.tar.gz |
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
-rw-r--r-- | test/javascript/tests/replication.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/javascript/tests/replication.js b/test/javascript/tests/replication.js index b6f2c4e12..ba586b409 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"); |