Skip to content

Commit

Permalink
Increase timeout for replicator tests setup (apache#4428)
Browse files Browse the repository at this point in the history
  • Loading branch information
merlimat authored May 31, 2019
1 parent 8385b6b commit cff5627
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@
public class PeerReplicatorTest extends ReplicatorTestBase {

@Override
@BeforeClass
@BeforeClass(timeOut = 300000)
void setup() throws Exception {
super.setup();
}

@Override
@AfterClass
@AfterClass(timeOut = 300000)
void shutdown() throws Exception {
super.shutdown();
}
Expand Down Expand Up @@ -178,11 +178,11 @@ public void testGetPeerClusters() throws Exception {
}, 5, 100);
assertEquals(admin1.clusters().getPeerClusterNames(mainClusterName), peerClusters);
}

/**
* Removing local cluster from the replication-cluster should make sure that bundle should not be loaded by the
* cluster even if owner broker doesn't receive the watch to avoid lookup-conflict between peer-cluster.
*
*
* @throws Exception
*/
@Test(timeOut = 10000)
Expand All @@ -192,7 +192,7 @@ public void testPeerClusterInReplicationClusterListChange() throws Exception {
admin1.clusters().updatePeerClusterNames("r1", null);
admin1.clusters().updatePeerClusterNames("r2", null);
admin1.clusters().updatePeerClusterNames("r3", null);

final String serviceUrl = pulsar3.getBrokerServiceUrl();
final String namespace1 = "pulsar/global/peer-change-repl-ns";
admin1.namespaces().createNamespace(namespace1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,21 @@ public void beforeMethod(Method m) {
}

@Override
@BeforeClass(timeOut = 60000)
@BeforeClass(timeOut = 300000)
void setup() throws Exception {
super.setup();
}

@Override
@AfterClass(timeOut = 60000)
@AfterClass(timeOut = 300000)
void shutdown() throws Exception {
super.shutdown();
}

/**
* If local cluster is removed from the global namespace then all topics under that namespace should be deleted from
* the cluster.
*
*
* @throws Exception
*/
@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ public void beforeMethod(Method m) throws Exception {
}

@Override
@BeforeClass(timeOut = 30000)
@BeforeClass(timeOut = 300000)
void setup() throws Exception {
super.setup();
}

@Override
@AfterClass(timeOut = 30000)
@AfterClass(timeOut = 300000)
void shutdown() throws Exception {
super.shutdown();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ public void beforeMethod(Method m) throws Exception {
}

@Override
@BeforeClass(timeOut = 30000)
@BeforeClass(timeOut = 300000)
void setup() throws Exception {
super.setup();
}

@Override
@AfterClass(timeOut = 30000)
@AfterClass(timeOut = 300000)
void shutdown() throws Exception {
super.shutdown();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
public class ReplicatorTlsTest extends ReplicatorTestBase {

@Override
@BeforeClass
@BeforeClass(timeOut = 300000)
void setup() throws Exception {
config1.setBrokerClientTlsEnabled(true);
config2.setBrokerClientTlsEnabled(true);
Expand All @@ -42,7 +42,7 @@ void setup() throws Exception {
}

@Override
@AfterClass
@AfterClass(timeOut = 300000)
void shutdown() throws Exception {
super.shutdown();
}
Expand Down

0 comments on commit cff5627

Please sign in to comment.