Skip to content

Commit 5360e44

Browse files
fix: (0.64) Query new account balance in throttling tests (#20130)
Signed-off-by: Michael Tinker <[email protected]>
1 parent 6d02f27 commit 5360e44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hedera-node/test-clients/src/main/java/com/hedera/services/bdd/suites/throttling/SteadyStateThrottlingTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
import static com.hedera.services.bdd.spec.utilops.UtilVerbs.inParallel;
2525
import static com.hedera.services.bdd.spec.utilops.UtilVerbs.newKeyNamed;
2626
import static com.hedera.services.bdd.spec.utilops.UtilVerbs.runWithProvider;
27+
import static com.hedera.services.bdd.spec.utilops.UtilVerbs.sleepForSeconds;
2728
import static com.hedera.services.bdd.spec.utilops.UtilVerbs.withOpContext;
28-
import static com.hedera.services.bdd.suites.HapiSuite.DEFAULT_PAYER;
2929
import static com.hedera.services.bdd.suites.HapiSuite.GENESIS;
3030
import static com.hedera.services.bdd.suites.HapiSuite.ONE_HBAR;
3131
import static com.hedera.services.bdd.suites.HapiSuite.ONE_MILLION_HBARS;
@@ -243,7 +243,7 @@ private CompetingClient competingClientFor(String txn) {
243243

244244
final Stream<DynamicTest> checkBalanceQps(int burstSize, double expectedQps) {
245245
return defaultHapiSpec("CheckBalanceQps")
246-
.given(cryptoCreate("curious").payingWith(GENESIS))
246+
.given(cryptoCreate(CIVILIAN), cryptoCreate("curious").payingWith(GENESIS), sleepForSeconds(1))
247247
.when()
248248
.then(withOpContext((spec, opLog) -> {
249249
int numBusy = 0;
@@ -253,7 +253,7 @@ final Stream<DynamicTest> checkBalanceQps(int burstSize, double expectedQps) {
253253
int logScreen = 0;
254254
while (watch.elapsed(SECONDS) < secsToRun) {
255255
var subOps = IntStream.range(0, burstSize)
256-
.mapToObj(ignore -> getAccountBalance(DEFAULT_PAYER)
256+
.mapToObj(ignore -> getAccountBalance(CIVILIAN)
257257
.noLogging()
258258
.payingWith("curious")
259259
.hasAnswerOnlyPrecheckFrom(BUSY, OK))

0 commit comments

Comments
 (0)