Skip to content

Commit

Permalink
ARCO-152: make gen go
Browse files Browse the repository at this point in the history
  • Loading branch information
boecklim committed Aug 14, 2024
1 parent 59ea747 commit d63c0f2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 52 deletions.
70 changes: 20 additions & 50 deletions internal/broadcaster/mocks/utxo_client_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/broadcaster/utxo_consolidator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ func TestStart(t *testing.T) {
t.Run(tc.name, func(t *testing.T) {

utxoClient := &mocks.UtxoClientMock{
GetBalanceWithRetriesFunc: func(ctx context.Context, mainnet bool, address string, constantBackoff time.Duration, retries uint64) (int64, int64, error) {
GetBalanceWithRetriesFunc: func(ctx context.Context, address string, constantBackoff time.Duration, retries uint64) (int64, int64, error) {
return 1000, 0, tc.getBalanceWithRetriesErr
},
GetUTXOsWithRetriesFunc: func(ctx context.Context, mainnet bool, lockingScript *bscript.Script, address string, constantBackoff time.Duration, retries uint64) ([]*bt.UTXO, error) {
GetUTXOsWithRetriesFunc: func(ctx context.Context, lockingScript *bscript.Script, address string, constantBackoff time.Duration, retries uint64) ([]*bt.UTXO, error) {
utxos := []*bt.UTXO{utxo1, utxo2, utxo3, utxo4}

return utxos, tc.getUTXOsWithRetriesErr
Expand Down

0 comments on commit d63c0f2

Please sign in to comment.