From 1f7f8f5b7624195186c0a9d9a0359f69f49f5c65 Mon Sep 17 00:00:00 2001 From: Christian Wulf <chw@informatik.uni-kiel.de> Date: Tue, 8 Jul 2014 21:30:37 +0200 Subject: [PATCH] updated time assertions --- .../examples/traceReading/ChwHomeTcpTraceReadingTest.java | 2 +- .../examples/traceReading/TcpTraceLoggingExtAnalysis.java | 5 +---- .../traceReconstruction/TcpTraceReconstructionAnalysis.java | 4 ++-- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/test/java/teetime/variant/methodcallWithPorts/examples/traceReading/ChwHomeTcpTraceReadingTest.java b/src/test/java/teetime/variant/methodcallWithPorts/examples/traceReading/ChwHomeTcpTraceReadingTest.java index 496d83ff..d21667dc 100644 --- a/src/test/java/teetime/variant/methodcallWithPorts/examples/traceReading/ChwHomeTcpTraceReadingTest.java +++ b/src/test/java/teetime/variant/methodcallWithPorts/examples/traceReading/ChwHomeTcpTraceReadingTest.java @@ -81,7 +81,7 @@ public class ChwHomeTcpTraceReadingTest { assertEquals("#records", EXPECTED_NUM_RECORDS, analysis.getNumRecords()); // 08.07.2014 (incl.) - assertThat(recordQuintiles.get(0.5), is(both(greaterThan(3000L)).and(lessThan(3200L)))); + assertThat(recordQuintiles.get(0.5), is(both(greaterThan(3000L)).and(lessThan(3500L)))); } } diff --git a/src/test/java/teetime/variant/methodcallWithPorts/examples/traceReading/TcpTraceLoggingExtAnalysis.java b/src/test/java/teetime/variant/methodcallWithPorts/examples/traceReading/TcpTraceLoggingExtAnalysis.java index 08a004e6..2337ec8f 100644 --- a/src/test/java/teetime/variant/methodcallWithPorts/examples/traceReading/TcpTraceLoggingExtAnalysis.java +++ b/src/test/java/teetime/variant/methodcallWithPorts/examples/traceReading/TcpTraceLoggingExtAnalysis.java @@ -19,9 +19,6 @@ import kieker.common.record.IMonitoringRecord; public class TcpTraceLoggingExtAnalysis extends Analysis { - private static final int MIO = 1000000; - private static final int TCP_RELAY_MAX_SIZE = 2 * MIO; - private Thread clockThread; private Thread tcpThread; @@ -53,7 +50,7 @@ public class TcpTraceLoggingExtAnalysis extends Analysis { SingleElementPipe.connect(this.recordCounter.getOutputPort(), this.recordThroughputStage.getInputPort()); SingleElementPipe.connect(this.recordThroughputStage.getOutputPort(), endStage.getInputPort()); - SpScPipe.connect(clockPipeline.getOutputPort(), this.recordThroughputStage.getTriggerInputPort(), TCP_RELAY_MAX_SIZE); + SpScPipe.connect(clockPipeline.getOutputPort(), this.recordThroughputStage.getTriggerInputPort(), 10); // create and configure pipeline Pipeline<Void, IMonitoringRecord> pipeline = new Pipeline<Void, IMonitoringRecord>(); diff --git a/src/test/java/teetime/variant/methodcallWithPorts/examples/traceReconstruction/TcpTraceReconstructionAnalysis.java b/src/test/java/teetime/variant/methodcallWithPorts/examples/traceReconstruction/TcpTraceReconstructionAnalysis.java index 994d3bc2..3fccf84b 100644 --- a/src/test/java/teetime/variant/methodcallWithPorts/examples/traceReconstruction/TcpTraceReconstructionAnalysis.java +++ b/src/test/java/teetime/variant/methodcallWithPorts/examples/traceReconstruction/TcpTraceReconstructionAnalysis.java @@ -92,8 +92,8 @@ public class TcpTraceReconstructionAnalysis extends Analysis { SingleElementPipe.connect(traceReconstructionFilter.getOutputPort(), this.traceCounter.getInputPort()); SingleElementPipe.connect(this.traceCounter.getOutputPort(), endStage.getInputPort()); - SpScPipe.connect(clockStage.getOutputPort(), this.recordThroughputFilter.getTriggerInputPort(), 1); - SpScPipe.connect(clock2Stage.getOutputPort(), this.traceThroughputFilter.getTriggerInputPort(), 1); + SpScPipe.connect(clockStage.getOutputPort(), this.recordThroughputFilter.getTriggerInputPort(), 10); + SpScPipe.connect(clock2Stage.getOutputPort(), this.traceThroughputFilter.getTriggerInputPort(), 10); // create and configure pipeline Pipeline<Void, TraceEventRecords> pipeline = new Pipeline<Void, TraceEventRecords>(); -- GitLab