Test: increase timeout in UnicastZenPingTests#testSimplePings

This commit is contained in:
Boaz Leskes 2015-04-07 10:04:24 +02:00
parent 59d6bd8881
commit 9e18746ea0
1 changed files with 2 additions and 2 deletions

View File

@ -115,14 +115,14 @@ public class UnicastZenPingTests extends ElasticsearchTestCase {
try {
logger.info("ping from UZP_A");
ZenPing.PingResponse[] pingResponses = zenPingA.pingAndWait(TimeValue.timeValueSeconds(1));
ZenPing.PingResponse[] pingResponses = zenPingA.pingAndWait(TimeValue.timeValueSeconds(10));
assertThat(pingResponses.length, equalTo(1));
assertThat(pingResponses[0].node().id(), equalTo("UZP_B"));
assertTrue(pingResponses[0].hasJoinedOnce());
// ping again, this time from B,
logger.info("ping from UZP_B");
pingResponses = zenPingB.pingAndWait(TimeValue.timeValueSeconds(1));
pingResponses = zenPingB.pingAndWait(TimeValue.timeValueSeconds(10));
assertThat(pingResponses.length, equalTo(1));
assertThat(pingResponses[0].node().id(), equalTo("UZP_A"));
assertFalse(pingResponses[0].hasJoinedOnce());