Skip to content

Commit

Permalink
update coin_select_test accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
myxmaster authored Oct 24, 2024
1 parent f76bce2 commit cb397c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lnwallet/chanfunding/coin_select_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ func TestCoinSelectSubtractFees(t *testing.T) {
},
spendValue: 5 * fundingFee(highFeeRate, 1, false),

expectErr: "fee <amt> BTC on total output value <amt> BTC",
expectErr: "fee (<amt> BTC) exceeds <amt>% of total output (<amt> BTC)",
},
}

Expand Down Expand Up @@ -812,8 +812,8 @@ func TestCoinSelectUpToAmount(t *testing.T) {
minValue: minValue,
maxValue: 16 * fundingFee(feeRate, 1, false),

expectErr: "fee 0.00000192 BTC on total output value " +
"0.00000768 BTC",
expectErr: "fee (0.00000192 BTC) exceeds 20% of total output " +
"(0.00000768 BTC)",
}, {
// This test makes sure that the implementation detail of using
// CoinSelect and CoinSelectSubtractFees is done correctly.
Expand Down

0 comments on commit cb397c3

Please sign in to comment.