From f0e0c78f7a9f51d9ac58f9c3bc238c1b929d70ee Mon Sep 17 00:00:00 2001 From: Calvin Zachman Date: Thu, 28 Mar 2024 09:46:16 -0400 Subject: [PATCH] itest: small fixes for load test --- itest/loadtest/mint_batch_test.go | 2 +- itest/utils.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/itest/loadtest/mint_batch_test.go b/itest/loadtest/mint_batch_test.go index 09a888a6d..fabfffb34 100644 --- a/itest/loadtest/mint_batch_test.go +++ b/itest/loadtest/mint_batch_test.go @@ -164,5 +164,5 @@ func mintTest(t *testing.T, ctx context.Context, cfg *Config) { }) require.True(t, correctOp) - itest.SyncUniverses(ctx, t, alice, bob, aliceHost, cfg.TestTimeout) + itest.SyncUniverses(ctx, t, bob, alice, aliceHost, cfg.TestTimeout) } diff --git a/itest/utils.go b/itest/utils.go index 05eb09d2f..a84821f16 100644 --- a/itest/utils.go +++ b/itest/utils.go @@ -147,7 +147,7 @@ func MineBlocks(t *testing.T, client *rpcclient.Client, var blockHashes []*chainhash.Hash switch backend.(type) { - case rpcclient.BitcoindVersion: + case *rpcclient.BitcoindVersion: addr, err := btcutil.DecodeAddress( regtestMiningAddr, regtestParams, ) @@ -158,7 +158,7 @@ func MineBlocks(t *testing.T, client *rpcclient.Client, ) require.NoError(t, err) - case rpcclient.BtcdVersion: + case *rpcclient.BtcdVersion: blockHashes, err = client.Generate(num) require.NoError(t, err)