Skip to content

Commit

Permalink
- RelayTest: timeout 200'000 -> 2'000
Browse files Browse the repository at this point in the history
- Made byteman a compile-time dependency (https://issues.redhat.com/browse/JGRP-2742)
  • Loading branch information
belaban committed Jan 3, 2024
1 parent 3e8ce61 commit 1a535a4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
<groupId>org.jboss.byteman</groupId>
<artifactId>byteman-bmunit</artifactId>
<version>4.0.20</version>
<scope>provided</scope>
<scope>test</scope>
<optional>true</optional>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions tests/junit-functional/org/jgroups/tests/RelayTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ public void testSitesUp(Class<? extends RELAY> cl) throws Exception {
.map(ch -> (RELAY)ch.getProtocolStack().findProtocol(RELAY.class))
.forEach(r -> r.setRouteStatusListener(new DefaultRouteStatusListener(r::getAddress).verbose(false)));

// now stop A; B will become new site master and we should get a site-down(NYC), then site-up(NYC)
// now stop A; B will become new site master, and we should get a site-down(NYC), then site-up(NYC)
Util.close(a);
Util.waitUntil(5000, 500, () -> Stream.of(d,e,f,_g,_h,_i)
.map(ch -> (RELAY)ch.getProtocolStack().findProtocol(RELAY.class))
Expand Down Expand Up @@ -840,7 +840,7 @@ public void testFailover(Class<? extends RELAY> cl) throws Exception {
Util.waitUntil(3000, 100,
() -> ((RELAY)d.getProtocolStack().findProtocol(RELAY.class)).isSiteMaster());
MyReceiver<Message> r=getReceiver(d);
Util.waitUntil(200000, 200, () -> r.size() == 5);
Util.waitUntil(2000, 200, () -> r.size() == 5);

Table<Message> send_win=unicast.getSendWindow(target);
// wait until the ack from D has been received
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 1a535a4

Please sign in to comment.