routing: assert that paths have same length in isSamePath

This commit is contained in:
Olaoluwa Osuntokun
2017-04-13 14:42:29 -07:00
parent d93e3e6fbe
commit 2d10d83f07
2 changed files with 6 additions and 2 deletions

View File

@@ -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