Fix bug with profile-gathering waitgroup in scale tests

pull/6/head
Shyam Jeedigunta 2018-02-08 15:58:51 +01:00
parent b5387effe8
commit db0a3721f0
No known key found for this signature in database
GPG Key ID: 745AA51D657EAD2C
2 changed files with 2 additions and 0 deletions

View File

@ -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()

View File

@ -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()