mirror of https://github.com/k3s-io/k3s
Fix bug with profile-gathering waitgroup in scale tests
parent
b5387effe8
commit
db0a3721f0
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue