From aeb09aa3b8c606b079dab860390e21d4d0cf0466 Mon Sep 17 00:00:00 2001 From: Vyatcheslav Suharnikov Date: Tue, 19 Nov 2024 11:58:16 +0400 Subject: [PATCH] Cleanup --- .../src/test/scala/units/AlternativeChainTestSuite.scala | 4 ++-- .../src/test/scala/units/SyncingTestSuite.scala | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/consensus-client-it/src/test/scala/units/AlternativeChainTestSuite.scala b/consensus-client-it/src/test/scala/units/AlternativeChainTestSuite.scala index 9a37642f..835f0124 100644 --- a/consensus-client-it/src/test/scala/units/AlternativeChainTestSuite.scala +++ b/consensus-client-it/src/test/scala/units/AlternativeChainTestSuite.scala @@ -21,9 +21,9 @@ class AlternativeChainTestSuite extends BaseDockerTestSuite { elRewardAddress = miner21RewardAddress ) ) - waves1.api.waitForHeight(heightBeforeJoin + 1) // "designatedMiner" calculates correctly step(s"Wait miner 2 (${miner21Account.toAddress}) epoch and issue a block confirmation") + waves1.api.waitForHeight(heightBeforeJoin + 1) broadcastElBlockConfirmation(miner21Account) step(s"Wait miner 1 (${miner11Account.toAddress}) epoch") @@ -34,7 +34,7 @@ class AlternativeChainTestSuite extends BaseDockerTestSuite { } @tailrec private def broadcastElBlockConfirmation(minerAccount: KeyPair, maxAttempts: Int = 5)(implicit - loggingOptions: LoggingOptions = LoggingOptions(logCall = false, logRequest = false) + loggingOptions: LoggingOptions = LoggingOptions(logRequest = false) ): Unit = { if (maxAttempts == 0) fail("Can't broadcast an EL-block confirmation: all attempts are out") diff --git a/consensus-client-it/src/test/scala/units/SyncingTestSuite.scala b/consensus-client-it/src/test/scala/units/SyncingTestSuite.scala index 75c8abf3..26bc8e27 100644 --- a/consensus-client-it/src/test/scala/units/SyncingTestSuite.scala +++ b/consensus-client-it/src/test/scala/units/SyncingTestSuite.scala @@ -20,7 +20,7 @@ class SyncingTestSuite extends BaseDockerTestSuite { val txn1Result = sendTxn(0) waitForTxn(txn1Result) - val height1 = waves1.api.height + val height1 = waves1.api.height() step("Wait for next epoch") waves1.api.waitForHeight(height1 + 1)