From 3d43dfeb1a11570873b2bbf93492caf64dc84937 Mon Sep 17 00:00:00 2001 From: timofeevmd Date: Mon, 3 Jun 2024 11:43:36 +0400 Subject: [PATCH] update load profile to open model Signed-off-by: timofeevmd Signed-off-by: timofeevmd --- src/main/java/jp/co/soramitsu/load/LoadProfiles.java | 2 +- .../load/simulation/transaction/PerformanceSimulation.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/jp/co/soramitsu/load/LoadProfiles.java b/src/main/java/jp/co/soramitsu/load/LoadProfiles.java index 37a8680..15a7f28 100644 --- a/src/main/java/jp/co/soramitsu/load/LoadProfiles.java +++ b/src/main/java/jp/co/soramitsu/load/LoadProfiles.java @@ -20,7 +20,7 @@ public static OpenInjectionStep getMaxPerformanceOpenProfile() { .times(SimulationConfig.simulation.times()) .eachLevelLasting(SimulationConfig.simulation.stageDuration()) .separatedByRampsLasting(SimulationConfig.simulation.rampDuration()) - .startingFrom(0); + .startingFrom(SimulationConfig.simulation.startingFrom()); } public static ClosedInjectionStep[] getStabilityClosedProfile() { diff --git a/src/test/java/jp/co/soramitsu/load/simulation/transaction/PerformanceSimulation.java b/src/test/java/jp/co/soramitsu/load/simulation/transaction/PerformanceSimulation.java index e6c3492..f711023 100644 --- a/src/test/java/jp/co/soramitsu/load/simulation/transaction/PerformanceSimulation.java +++ b/src/test/java/jp/co/soramitsu/load/simulation/transaction/PerformanceSimulation.java @@ -8,7 +8,7 @@ public class PerformanceSimulation extends Simulation { { setUp( //jp.co.soramitsu.load.SetUp.Companion.apply().injectOpen(OpenInjectionStep.atOnceUsers(1)) - TransferAssets.Companion.apply().injectClosed(LoadProfiles.getMaxPerformanceClosedProfile()) + TransferAssets.Companion.apply().injectOpen(LoadProfiles.getMaxPerformanceOpenProfile()) //.andThen(TransferAssets.Companion.apply().injectOpen(LoadProfiles.getStabilityOpenProfile())) .andThen(CleanUp.Companion.apply().injectOpen(OpenInjectionStep.atOnceUsers(1))) ).protocols(Protocols.httpProtocol);