Skip to content

Commit

Permalink
CBQE:0 Wait for replication to go to running state before pausing.
Browse files Browse the repository at this point in the history
Change-Id: Iac3c7487d840bb1ac482a05d91f886c5f8385e6b
Reviewed-on: http://review.couchbase.org/39646
Reviewed-by: Aruna Piravi <aruna@couchbase.com>
Tested-by: Aruna Piravi <aruna@couchbase.com>
  • Loading branch information
arunapiravi committed Jul 22, 2014
1 parent f427a5a commit 6b73fb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pytests/clitest/couchbase_clitest.py
Expand Up @@ -1125,6 +1125,7 @@ def testXdcrReplication(self):

options = "--list"
output, _ = self.__execute_cli(cli_command, options)
self.sleep(8)
for value in output:
if value.startswith("stream id"):
replicator = value.split(":")[1].strip()
Expand All @@ -1141,6 +1142,7 @@ def testXdcrReplication(self):
for value in output:
if value.startswith("status"):
self.assertEqual(value.split(":")[1].strip(), "paused")
self.sleep(10)
# resume replication
options = "--resume"
options += (" --xdcr-replicator={0}".format(replicator))
Expand Down

0 comments on commit 6b73fb2

Please sign in to comment.