Skip to content

Commit ad47fe3

Browse files
authored
Merge pull request kubernetes#83925 from BurtonQin/framework_leak
framework: Fix a goroutine leak bug in resource_usage_gatherer.go
2 parents 486e238 + 24dcd8e commit ad47fe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/framework/resource_usage_gatherer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ func (g *ContainerResourceGatherer) StartGatheringData() {
345345
func (g *ContainerResourceGatherer) StopAndSummarize(percentiles []int, constraints map[string]ResourceConstraint) (*ResourceUsageSummary, error) {
346346
close(g.stopCh)
347347
Logf("Closed stop channel. Waiting for %v workers", len(g.workers))
348-
finished := make(chan struct{})
348+
finished := make(chan struct{}, 1)
349349
go func() {
350350
g.workerWg.Wait()
351351
finished <- struct{}{}

0 commit comments

Comments
 (0)