diff options
| author | Alan Conway <aconway@apache.org> | 2010-06-09 20:29:32 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2010-06-09 20:29:32 +0000 |
| commit | bfd0ea5b4582f99fe423ec18d206e7f3d2a635dc (patch) | |
| tree | 0b1641c9624ef0ecbece65785274060021eaf3be /qpid/cpp/src/tests/cluster_tests.py | |
| parent | ffaa25d6c05dd381f603edb0107e914d3130480b (diff) | |
| download | qpid-python-bfd0ea5b4582f99fe423ec18d206e7f3d2a635dc.tar.gz | |
Fix cluster-safe assertion in connection negotiation.
See https://bugzilla.redhat.com/show_bug.cgi?id=602347.
In a cluster, raise the management connect event when processing cluster.announce.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@953147 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/cluster_tests.py')
| -rwxr-xr-x | qpid/cpp/src/tests/cluster_tests.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qpid/cpp/src/tests/cluster_tests.py b/qpid/cpp/src/tests/cluster_tests.py index 02b3b29571..3fb184c282 100755 --- a/qpid/cpp/src/tests/cluster_tests.py +++ b/qpid/cpp/src/tests/cluster_tests.py @@ -223,6 +223,7 @@ class LongTests(BrokerTest): """Start ordinary clients for a broker. Start one client per broker. Round-robin on a colllection of different clients.""" cmds=[ + ["qpid-tool", "localhost:%s"%(broker.port())], ["qpid-perftest", "--count", 50000, "--base-name", str(qpid.datatypes.uuid4()), "--port", broker.port()], ["qpid-queue-stats", "-a", "localhost:%s" %(broker.port())], @@ -234,14 +235,15 @@ class LongTests(BrokerTest): cmd = ["qpid-stat", "-b", "localhost:%s" %(broker.port())] mclients.append(ClientLoop(broker, cmd)) - endtime = time.time() + self.duration() + duration = max(self.duration(), 5) + endtime = time.time() + duration alive = 0 # First live cluster member for i in range(len(cluster)): start_clients(cluster[i], i) start_mclients(cluster[alive]) while time.time() < endtime: - time.sleep(min(5,self.duration()/2)) + time.sleep(min(5,duration/2)) for b in cluster[alive:]: b.ready() # Check if a broker crashed. # Kill the first broker, expect the clients to fail. for c in clients[alive] + mclients: c.expect_fail() |
