Skip to content

Commit cfba691

Browse files
wojciech-adaptivevyazelenko
authored andcommitted
[Java] Remove high explicit idleSleepDurationNs from tests.
It doesn't seem necessary, and removing it makes the tests much faster (timings from my laptop): PubAndSubTest 29s to 17s PublicationRevokeTest 5s to 3s (cherry picked from commit cdcfd4b)
1 parent c8b2b96 commit cfba691

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

aeron-system-tests/src/test/java/io/aeron/PubAndSubTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ private static List<String> channels()
9292
.timerIntervalNs(MILLISECONDS.toNanos(100));
9393

9494
private final Aeron.Context clientContext = new Aeron.Context()
95-
.resourceLingerDurationNs(MILLISECONDS.toNanos(200))
96-
.idleSleepDurationNs(MILLISECONDS.toNanos(100));
95+
.resourceLingerDurationNs(MILLISECONDS.toNanos(200));
9796

9897
private Aeron publishingClient;
9998
private Aeron subscribingClient;

aeron-system-tests/src/test/java/io/aeron/PublicationRevokeTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ class PublicationRevokeTest
7373
.threadingMode(ThreadingMode.SHARED);
7474

7575
private final Aeron.Context clientContext = new Aeron.Context()
76-
.resourceLingerDurationNs(MILLISECONDS.toNanos(200))
77-
.idleSleepDurationNs(MILLISECONDS.toNanos(100));
76+
.resourceLingerDurationNs(MILLISECONDS.toNanos(200));
7877

7978
private Aeron client;
8079
private TestMediaDriver driver;

0 commit comments

Comments
 (0)