Skip to content

Commit

Permalink
Fix TSS migration test
Browse files Browse the repository at this point in the history
  • Loading branch information
swift1337 committed Nov 22, 2024
1 parent 14c2de2 commit 6634a49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e/e2etests/test_migrate_tss.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 2 additions & 0 deletions e2e/runner/bitcoin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6634a49

Please sign in to comment.