wait for garbagecollector to be synced in test

This commit is contained in:
Chao Xu
2017-03-14 16:19:33 -07:00
parent ab9b299c30
commit 0605ba7a6d
2 changed files with 19 additions and 1 deletions

View File

@@ -125,6 +125,10 @@ func (gc *GarbageCollector) Run(workers int, stopCh <-chan struct{}) {
glog.Infof("Garbage Collector: Shutting down")
}
func (gc *GarbageCollector) HasSynced() bool {
return gc.dependencyGraphBuilder.HasSynced()
}
func (gc *GarbageCollector) runAttemptToDeleteWorker() {
for gc.attemptToDeleteWorker() {
}