mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
sweep: update fee estimator fee-below-floor test case
Handle error in test case, as well as add new test case for below relay fee input.
This commit is contained in:
parent
2292f3fbd0
commit
25097f0993
1 changed files with 10 additions and 2 deletions
|
@ -43,12 +43,20 @@ func TestDetermineFeePerKw(t *testing.T) {
|
|||
// fail determines if this test case should fail or not.
|
||||
fail bool
|
||||
}{
|
||||
// A fee rate below the fee rate floor should output the floor.
|
||||
// A fee rate below the floor should error out.
|
||||
{
|
||||
feePref: FeePreference{
|
||||
FeeRate: chainfee.SatPerKWeight(99),
|
||||
},
|
||||
fee: chainfee.FeePerKwFloor,
|
||||
fail: true,
|
||||
},
|
||||
|
||||
// A fee rate below the relay fee should error out.
|
||||
{
|
||||
feePref: FeePreference{
|
||||
FeeRate: chainfee.SatPerKWeight(299),
|
||||
},
|
||||
fail: true,
|
||||
},
|
||||
|
||||
// A fee rate above the floor, should pass through and return
|
||||
|
|
Loading…
Add table
Reference in a new issue