diff options
-rwxr-xr-x | qpid/cpp/src/tests/ha_tests.py | 2 | ||||
-rwxr-xr-x | qpid/cpp/src/tests/interop_tests.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/ha_tests.py b/qpid/cpp/src/tests/ha_tests.py index d0d713e34a..2ee2e291e2 100755 --- a/qpid/cpp/src/tests/ha_tests.py +++ b/qpid/cpp/src/tests/ha_tests.py @@ -674,6 +674,7 @@ acl deny all all s.acknowledge(msg, qm.Disposition(qm.REJECTED)) # Reject the message self.assertEqual("bar", altq.fetch(timeout=0).content) s.acknowledge() + s.sync() # Make sure backups are caught-up. c.close() # Sanity check: alternate exchanges on original broker @@ -885,6 +886,7 @@ acl deny all all qs = ["q%s"%i for i in xrange(10)] a = cluster[0].agent a.addQueue("q") + cluster[1].wait_backup("q") cluster.kill(0) cluster[1].promote() cluster[1].wait_status("active") diff --git a/qpid/cpp/src/tests/interop_tests.py b/qpid/cpp/src/tests/interop_tests.py index d5533ead21..f76b9f634b 100755 --- a/qpid/cpp/src/tests/interop_tests.py +++ b/qpid/cpp/src/tests/interop_tests.py @@ -195,7 +195,7 @@ if __name__ == "__main__": if not BrokerTest.amqp_tx_supported: BrokerTest.amqp_tx_warning() print "Skipping interop_tests" - exit(0) + sys.exit(0) outdir = "interop_tests.tmp" shutil.rmtree(outdir, True) cmd = ["qpid-python-test", "-m", "interop_tests", "-DOUTDIR=%s"%outdir] + sys.argv[1:] |