From 6634a494dbb469c051ac1e24c3881e618258cfca Mon Sep 17 00:00:00 2001 From: Dmitry S <11892559+swift1337@users.noreply.github.com> Date: Fri, 22 Nov 2024 16:39:06 +0100 Subject: [PATCH] Fix TSS migration test --- e2e/e2etests/test_migrate_tss.go | 3 ++- e2e/runner/bitcoin.go | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/e2e/e2etests/test_migrate_tss.go b/e2e/e2etests/test_migrate_tss.go index 067623a325..08ec888d71 100644 --- a/e2e/e2etests/test_migrate_tss.go +++ b/e2e/e2etests/test_migrate_tss.go @@ -20,10 +20,11 @@ import ( ) func TestMigrateTSS(r *runner.E2ERunner, _ []string) { + r.SetupBtcAddress(r.Name, false) stop := r.MineBlocksIfLocalBitcoin() defer stop() - // Pause inbound procoessing for tss migration + // Pause inbound processing for tss migration r.Logger.Info("Pause inbound processing") msg := observertypes.NewMsgDisableCCTX( r.ZetaTxServer.MustGetAccountAddressFromName(utils.EmergencyPolicyName), diff --git a/e2e/runner/bitcoin.go b/e2e/runner/bitcoin.go index bec7a1e907..ab322532a8 100644 --- a/e2e/runner/bitcoin.go +++ b/e2e/runner/bitcoin.go @@ -422,6 +422,8 @@ func (r *E2ERunner) QueryOutboundReceiverAndAmount(txid string) (string, int64) // and returns a channel that can be used to stop the mining // If the chain is not local, the function does nothing func (r *E2ERunner) MineBlocksIfLocalBitcoin() func() { + require.NotNil(r, r.BTCDeployerAddress, "E2ERunner.BTCDeployerAddress is nil") + stopChan := make(chan struct{}) go func() { for {