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 7d9c96b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion contrib/localnet/orchestrator/start-zetae2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ if [ "$LOCALNET_MODE" == "tss-migrate" ]; then
echo "waiting 10 seconds for node to restart"
sleep 10

zetae2e local --skip-setup --config "$deployed_config_path" --skip-bitcoin-setup --light --skip-header-proof
zetae2e local --skip-setup --config "$deployed_config_path" \
--skip-bitcoin-setup --light --skip-header-proof --skip-precompiles
ZETAE2E_EXIT_CODE=$?
if [ $ZETAE2E_EXIT_CODE -eq 0 ]; then
echo "E2E passed after migration"
Expand Down
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 7d9c96b

Please sign in to comment.