routing: run path finding tests against cache and DB

To make sure we don't hit any edge cases we refactor the path finding
tests to run both with and without the cache enabled.
This commit is contained in:
Oliver Gugger
2021-10-21 13:55:24 +02:00
parent 0a2ccfc52b
commit 01015aced4
3 changed files with 198 additions and 128 deletions

View File

@@ -180,7 +180,7 @@ func TestRouterPaymentStateMachine(t *testing.T) {
}, 2),
}
testGraph, err := createTestGraphFromChannels(testChannels, "a")
testGraph, err := createTestGraphFromChannels(true, testChannels, "a")
if err != nil {
t.Fatalf("unable to create graph: %v", err)
}