Skip to content

Commit

Permalink
Merge pull request #57 from soramitsu/fix/iroha_config
Browse files Browse the repository at this point in the history
update load model
  • Loading branch information
adaagava authored Mar 19, 2024
2 parents 5cbbe31 + 090501e commit 73e3af6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/kotlin/jp/co/soramitsu/load/TransferAssets.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package jp.co.soramitsu.load

import io.gatling.javaapi.core.CoreDsl.*
import io.gatling.javaapi.core.ScenarioBuilder
import io.prometheus.client.Histogram
import jp.co.soramitsu.iroha2.asAccountId
import jp.co.soramitsu.iroha2.asAssetId
import jp.co.soramitsu.iroha2.generated.*
Expand Down Expand Up @@ -45,6 +46,7 @@ class TransferAssets : Wrench13() {
}
.exec { Session ->
runBlocking {
var timer: Histogram.Timer
val iroha2Client = buildClient(SimulationConfig.simulation.configuration())
timer = CustomMetrics.subscriptionToBlockStreamTimer.labels(
"gatling",
Expand Down Expand Up @@ -77,12 +79,12 @@ class TransferAssets : Wrench13() {
account(anotherDevAccountIdSender)
transferAsset(anotherDevAssetIdSender, 1, targetDevAccountIdReceiver)
buildSigned(anotherDevKeyPairSender)
}.also { d ->
}/*.also { d ->
withTimeout(Duration.ofSeconds(transactionWaiter)) {
d.await()
pliers.healthCheck(true, "TransferAssets")
}
}
}*/
subscription.stop()
} catch (ex: RuntimeException) {
CustomMetrics.transferAssetErrorCount.labels(
Expand Down

0 comments on commit 73e3af6

Please sign in to comment.