mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-04 18:01:57 +01:00
routing: assert that paths have same length in isSamePath
This commit is contained in:
@@ -130,8 +130,8 @@ func TestFindRoutesFeeSorting(t *testing.T) {
|
||||
|
||||
// Exactly, two such paths should be found.
|
||||
if len(routes) != 2 {
|
||||
t.Fatalf("2 routes shouldn't been selected, instead %v were: ",
|
||||
len(routes))
|
||||
t.Fatalf("2 routes shouldn't been selected, instead %v were: %v",
|
||||
len(routes), spew.Sdump(routes))
|
||||
}
|
||||
|
||||
// The paths should properly be ranked according to their total fee
|
||||
|
||||
Reference in New Issue
Block a user