mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +00:00
Fix bug with profile-gathering waitgroup in scale tests
This commit is contained in:
parent
b5387effe8
commit
db0a3721f0
@ -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() {
|
|||||||
// 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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user