diff --git a/src/components/src/test/groovy/org/apache/jmeter/timers/UniformRandomTimerSpec.groovy b/src/components/src/test/groovy/org/apache/jmeter/timers/UniformRandomTimerSpec.groovy index 756d69a5a71..dae6286b79f 100644 --- a/src/components/src/test/groovy/org/apache/jmeter/timers/UniformRandomTimerSpec.groovy +++ b/src/components/src/test/groovy/org/apache/jmeter/timers/UniformRandomTimerSpec.groovy @@ -25,8 +25,6 @@ class UniformRandomTimerSpec extends Specification { def sut = new UniformRandomTimer() def "default delay is 0"() { - given: - sut.iterationStart(null) when: def computedDelay = sut.delay() then: @@ -34,8 +32,6 @@ class UniformRandomTimerSpec extends Specification { } def "default range is 0"() { - given: - sut.iterationStart(null) when: def actualRange = sut.range then: @@ -45,7 +41,6 @@ class UniformRandomTimerSpec extends Specification { def "delay can be set via a String"() { given: sut.setDelay("1") - sut.iterationStart(null) when: def computedDelay = sut.delay() then: @@ -57,7 +52,6 @@ class UniformRandomTimerSpec extends Specification { given: sut.setDelay(delay) sut.setRange(range) - sut.iterationStart(null) when: def computedDelay = sut.delay() then: diff --git a/src/components/src/test/java/org/apache/jmeter/timers/ConstantThroughputTimerTest.java b/src/components/src/test/java/org/apache/jmeter/timers/ConstantThroughputTimerTest.java index a55b4bae4a3..1dfa7452490 100644 --- a/src/components/src/test/java/org/apache/jmeter/timers/ConstantThroughputTimerTest.java +++ b/src/components/src/test/java/org/apache/jmeter/timers/ConstantThroughputTimerTest.java @@ -127,7 +127,6 @@ void testUniformRandomTimer() throws Exception { UniformRandomTimer timer = new UniformRandomTimer(); timer.setDelay("1000"); timer.setRange(100d); - timer.iterationStart(null); long delay = timer.delay(); assertBetween(1000, 1100, delay); } @@ -142,7 +141,6 @@ private static void assertBetween(long expectedLow, long expectedHigh, long actu void testConstantTimer() throws Exception { ConstantTimer timer = new ConstantTimer(); timer.setDelay("1000"); - timer.iterationStart(null); Assertions.assertEquals(1000, timer.delay()); } @@ -151,7 +149,6 @@ void testPoissonRandomTimerRangeHigherThan30() throws Exception { PoissonRandomTimer timer = new PoissonRandomTimer(); timer.setDelay("300"); timer.setRange(100d); - timer.iterationStart(null); long delay = timer.delay(); assertBetween(356, 457, delay); } @@ -161,7 +158,6 @@ void testPoissonRandomTimerRangeLowerThan30() throws Exception { PoissonRandomTimer timer = new PoissonRandomTimer(); timer.setDelay("300"); timer.setRange(30d); - timer.iterationStart(null); long delay = timer.delay(); assertBetween(305, 362, delay); }