Skip to content

Commit

Permalink
Merge pull request #62 from soramitsu/fix/iroha_config
Browse files Browse the repository at this point in the history
update TransferAssets.kt
  • Loading branch information
timofeevmd authored Mar 20, 2024
2 parents c69c392 + 7b5aae5 commit 59f725c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
22 changes: 14 additions & 8 deletions src/main/kotlin/jp/co/soramitsu/load/TransferAssets.kt
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,17 @@ class TransferAssets : Wrench13() {
// sendMetricsToPrometheus(CustomMetrics.transferAssetTimer, "transaction")
//}
}

Session
}.exec { Session ->
runBlocking {
val iroha2Client = buildClient(SimulationConfig.simulation.configuration())
iroha2Client.sendTransaction {
/*iroha2Client.sendTransaction {
account(anotherDevAccountIdSender)
transferAsset(anotherDevAssetIdSender, 1, targetDevAccountIdReceiver)
buildSigned(anotherDevKeyPairSender)
}*/
iroha2Client.fireAndForget {
account(anotherDevAccountIdSender)
transferAsset(anotherDevAssetIdSender, 1, targetDevAccountIdReceiver)
buildSigned(anotherDevKeyPairSender)
Expand All @@ -118,7 +124,7 @@ class TransferAssets : Wrench13() {
}.exec { Session ->
runBlocking {
val iroha2Client = buildClient(SimulationConfig.simulation.configuration())
iroha2Client.sendTransaction {
iroha2Client.fireAndForget {
account(anotherDevAccountIdSender)
transferAsset(anotherDevAssetIdSender, 1, targetDevAccountIdReceiver)
buildSigned(anotherDevKeyPairSender)
Expand All @@ -128,7 +134,7 @@ class TransferAssets : Wrench13() {
}.exec { Session ->
runBlocking {
val iroha2Client = buildClient(SimulationConfig.simulation.configuration())
iroha2Client.sendTransaction {
iroha2Client.fireAndForget {
account(anotherDevAccountIdSender)
transferAsset(anotherDevAssetIdSender, 1, targetDevAccountIdReceiver)
buildSigned(anotherDevKeyPairSender)
Expand All @@ -138,7 +144,7 @@ class TransferAssets : Wrench13() {
}.exec { Session ->
runBlocking {
val iroha2Client = buildClient(SimulationConfig.simulation.configuration())
iroha2Client.sendTransaction {
iroha2Client.fireAndForget {
account(anotherDevAccountIdSender)
transferAsset(anotherDevAssetIdSender, 1, targetDevAccountIdReceiver)
buildSigned(anotherDevKeyPairSender)
Expand All @@ -148,7 +154,7 @@ class TransferAssets : Wrench13() {
}.exec { Session ->
runBlocking {
val iroha2Client = buildClient(SimulationConfig.simulation.configuration())
iroha2Client.sendTransaction {
iroha2Client.fireAndForget {
account(anotherDevAccountIdSender)
transferAsset(anotherDevAssetIdSender, 1, targetDevAccountIdReceiver)
buildSigned(anotherDevKeyPairSender)
Expand All @@ -168,7 +174,7 @@ class TransferAssets : Wrench13() {
}.exec { Session ->
runBlocking {
val iroha2Client = buildClient(SimulationConfig.simulation.configuration())
iroha2Client.sendTransaction {
iroha2Client.fireAndForget {
account(anotherDevAccountIdSender)
transferAsset(anotherDevAssetIdSender, 1, targetDevAccountIdReceiver)
buildSigned(anotherDevKeyPairSender)
Expand All @@ -178,7 +184,7 @@ class TransferAssets : Wrench13() {
}.exec { Session ->
runBlocking {
val iroha2Client = buildClient(SimulationConfig.simulation.configuration())
iroha2Client.sendTransaction {
iroha2Client.fireAndForget {
account(anotherDevAccountIdSender)
transferAsset(anotherDevAssetIdSender, 1, targetDevAccountIdReceiver)
buildSigned(anotherDevKeyPairSender)
Expand All @@ -188,7 +194,7 @@ class TransferAssets : Wrench13() {
}.exec { Session ->
runBlocking {
val iroha2Client = buildClient(SimulationConfig.simulation.configuration())
iroha2Client.sendTransaction {
iroha2Client.fireAndForget {
account(anotherDevAccountIdSender)
transferAsset(anotherDevAssetIdSender, 1, targetDevAccountIdReceiver)
buildSigned(anotherDevKeyPairSender)
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/simulation.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ duringSetUp=0
setUpUsersOnEachDomain=3

#Load model + Stress model
intensity=10
intensity=1
rampDuration=2
stageDuration=600
stressIntensity=20
Expand Down

0 comments on commit 59f725c

Please sign in to comment.