CreateChangesTriggeringGc: Fix test timing This change replaces the DefaultSecondsToNextEvaluation by secondsToNextEvaluation in the CreateChangesTriggeringGc scenario. This happens because this variable can be configured by an environment variable instead of being a fixed value. Change-Id: I46d05fc855efa2779057cec38caab1b477230ffc
diff --git a/src/test/scala/com/ericsson/gerrit/plugins/gcconductor/scenarios/CreateChangesTriggeringGc.scala b/src/test/scala/com/ericsson/gerrit/plugins/gcconductor/scenarios/CreateChangesTriggeringGc.scala index c6a4534..079f89c 100644 --- a/src/test/scala/com/ericsson/gerrit/plugins/gcconductor/scenarios/CreateChangesTriggeringGc.scala +++ b/src/test/scala/com/ericsson/gerrit/plugins/gcconductor/scenarios/CreateChangesTriggeringGc.scala
@@ -63,7 +63,7 @@ test.inject( nothingFor(stepWaitTime(this) seconds), constantUsersPerSec(changesPerSecond) during (secondsToChanges seconds), - nothingFor(DefaultSecondsToNextEvaluation seconds), + nothingFor(secondsToNextEvaluation seconds), nothingFor(secondsForLastEvaluation / 2 seconds), atOnceUsers(ChangesForLastEvaluation), nothingFor(secondsForLastEvaluation / 2 seconds)