Fix bug with profile-gathering waitgroup in scale tests

parent b5387eff
...@@ -363,6 +363,7 @@ var _ = SIGDescribe("Density", func() { ...@@ -363,6 +363,7 @@ var _ = SIGDescribe("Density", func() {
// Stop apiserver CPU profile gatherer and gather memory allocations profile. // Stop apiserver CPU profile gatherer and gather memory allocations profile.
close(profileGathererStopCh) close(profileGathererStopCh)
wg := sync.WaitGroup{} wg := sync.WaitGroup{}
wg.Add(1)
framework.GatherApiserverMemoryProfile(&wg, "density") framework.GatherApiserverMemoryProfile(&wg, "density")
wg.Wait() wg.Wait()
......
...@@ -104,6 +104,7 @@ var _ = SIGDescribe("Load capacity", func() { ...@@ -104,6 +104,7 @@ var _ = SIGDescribe("Load capacity", func() {
// Stop apiserver CPU profile gatherer and gather memory allocations profile. // Stop apiserver CPU profile gatherer and gather memory allocations profile.
close(profileGathererStopCh) close(profileGathererStopCh)
wg := sync.WaitGroup{} wg := sync.WaitGroup{}
wg.Add(1)
framework.GatherApiserverMemoryProfile(&wg, "load") framework.GatherApiserverMemoryProfile(&wg, "load")
wg.Wait() wg.Wait()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment