routing: restore in memory selfNode within the ChannelRouter
In this commit we restore the in memory ChannelRouter as we’ll no dynamically set the ChannelRouter’s pointer within he spec path finding test example.
This commit is contained in:
2 files changed
+16
-12
No files matched your search
@@ -718,6 +718,7 @@ func TestPathFindSpecExample(t *testing.T) {
|
||||
if err := ctx.graph.SetSourceNode(aliceNode); err != nil {
|
||||
t.Fatalf("unable to set source node: %v", err)
|
||||
}
|
||||
ctx.router.selfNode = aliceNode
|
||||
source, err := ctx.graph.SourceNode()
|
||||
if err != nil {
|
||||
t.Fatalf("unable to retrieve source node: %v", err)
|
||||
|
||||
Reference in new issue
Block a user