Fix bug with profile-gathering waitgroup in scale tests
This commit is contained in:
@@ -363,6 +363,7 @@ var _ = SIGDescribe("Density", func() {
|
||||
// Stop apiserver CPU profile gatherer and gather memory allocations profile.
|
||||
close(profileGathererStopCh)
|
||||
wg := sync.WaitGroup{}
|
||||
wg.Add(1)
|
||||
framework.GatherApiserverMemoryProfile(&wg, "density")
|
||||
wg.Wait()
|
||||
|
||||
|
@@ -104,6 +104,7 @@ var _ = SIGDescribe("Load capacity", func() {
|
||||
// Stop apiserver CPU profile gatherer and gather memory allocations profile.
|
||||
close(profileGathererStopCh)
|
||||
wg := sync.WaitGroup{}
|
||||
wg.Add(1)
|
||||
framework.GatherApiserverMemoryProfile(&wg, "load")
|
||||
wg.Wait()
|
||||
|
||||
|
Reference in New Issue
Block a user