autopilot: fix bug in skip nodes test, use new instance for each run

This commit is contained in:
Olaoluwa Osuntokun committed 2017-08-22 00:51:39 -07:00
1 parent 804edb8f02
commit a8576eaa69
1 file changed
+2 -1
+2 -1
View File
@@ -557,9 +557,10 @@ func TestConstrainedPrefAttachmentSelectSkipNodes(t *testing.T) {
threshold = 0.5
)
skipNodes := make(map[NodeID]struct{})
for _, graph := range chanGraphs {
success := t.Run(graph.name, func(t1 *testing.T) {
skipNodes := make(map[NodeID]struct{})
graph, cleanup, err := graph.genFunc()
if err != nil {
t1.Fatalf("unable to create graph: %v", err)