Commit b5241b2f
b5241b2fd476Merged
Svyatoslav Dumchenko <[email protected]> · 4 years ago · 5 files · +3 added · ~2 modified
Description
feat: add tests for graph
Details
- Commit
- b5241b2fd476
- Parent
- 6d8d88394f46
pkg/release/dependency/graph.gomodifiedView file
@@ -93,7 +93,7 @@
9393
// Run returns channel for data and runs goroutine that handles dependency graph9494
// and populates channel with ready to install releases.9595
func (graph *Graph[K, N]) Run() <-chan *Node[N] {96-
ch := make(chan *Node[N])96+
ch := make(chan *Node[N], len(graph.Nodes))9797
go graph.runChan(ch)9898
9999
return chpkg/release/dependency/graph_test.goaddedView file
Loading diff…
pkg/release/dependency/node.gomodifiedView file
Loading diff…
pkg/release/dependency/node_export_test.goaddedView file
Loading diff…
pkg/release/dependency/node_test.goaddedView file
Loading diff…