Skip to content

Commit 9050981

Browse files
committed
OF-3119: Use longer resolution delay on macOS to reduce test flakiness
1 parent 6472926 commit 9050981

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xmppserver/src/test/java/org/jivesoftware/openfire/net/HappyEyeballsResolverTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
*/
3636
public class HappyEyeballsResolverTest
3737
{
38-
static final Duration RESOLUTION_DELAY = Duration.ofMillis(50); // If this test is giving flappy results, try increasing this value. If it needs to increase over 50ms, then the implementation is not efficient enough on the server to comply with the specification.
38+
// If this test is giving flappy results, try increasing this value. If it needs to increase over 50ms, then the implementation is not efficient enough on the server to comply with the specification.
39+
static final Duration RESOLUTION_DELAY = Duration.ofMillis(System.getProperty("os.name").toLowerCase().contains("mac") ? 500 : 50); // OF-3119 - MacOS is known to be not very strict with clocks. Relax things on that platform only.
3940

4041
// Host 'prio0' configuration.
4142
static final SrvRecord HOST_PRIO0 = new SrvRecord("prio0.example.org", 5269, false);

0 commit comments

Comments
 (0)