Mercurial > stress-tester
changeset 1028:056fa28115ff
pcap emitter tests in progress - missing changes
author | Devel 1 |
---|---|
date | Thu, 02 Apr 2020 08:52:28 +0200 |
parents | 1e0034fb17dd |
children | e47bfb487cfd |
files | stress-tester/src/main/java/com/passus/st/emitter/nio/NioChannelContext.java stress-tester/src/test/java/com/passus/st/emitter/AbstractEmitterTest.java |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/emitter/nio/NioChannelContext.java Wed Apr 01 15:41:14 2020 +0200 +++ b/stress-tester/src/main/java/com/passus/st/emitter/nio/NioChannelContext.java Thu Apr 02 08:52:28 2020 +0200 @@ -98,6 +98,7 @@ return attachment; } + @Override public void setAttachment(K attachment) { this.attachment = attachment; }
--- a/stress-tester/src/test/java/com/passus/st/emitter/AbstractEmitterTest.java Wed Apr 01 15:41:14 2020 +0200 +++ b/stress-tester/src/test/java/com/passus/st/emitter/AbstractEmitterTest.java Thu Apr 02 08:52:28 2020 +0200 @@ -20,11 +20,11 @@ public abstract class AbstractEmitterTest<T extends Emitter> extends AbstractWireMockTest { - protected void waitConn(TestClientHandler handler, int expectedEventsSize) { + public static void waitConn(TestClientHandler handler, int expectedEventsSize) { waitConn(handler, expectedEventsSize, 5_000); } - protected void waitConn(TestClientHandler handler, int expectedEventsSize, long timeout) { + public static void waitConn(TestClientHandler handler, int expectedEventsSize, long timeout) { long endTime = System.currentTimeMillis() + timeout; if (endTime <= 0) { endTime = Long.MAX_VALUE;