autopilot: fix bug in skip nodes test, use new instance for each run
This commit is contained in:
parent
804edb8f02
commit
a8576eaa69
@ -557,9 +557,10 @@ func TestConstrainedPrefAttachmentSelectSkipNodes(t *testing.T) {
|
|||||||
threshold = 0.5
|
threshold = 0.5
|
||||||
)
|
)
|
||||||
|
|
||||||
skipNodes := make(map[NodeID]struct{})
|
|
||||||
for _, graph := range chanGraphs {
|
for _, graph := range chanGraphs {
|
||||||
success := t.Run(graph.name, func(t1 *testing.T) {
|
success := t.Run(graph.name, func(t1 *testing.T) {
|
||||||
|
skipNodes := make(map[NodeID]struct{})
|
||||||
|
|
||||||
graph, cleanup, err := graph.genFunc()
|
graph, cleanup, err := graph.genFunc()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t1.Fatalf("unable to create graph: %v", err)
|
t1.Fatalf("unable to create graph: %v", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user