Files
kubernetes/pkg/kubelet
Kubernetes Submit Queue c778d871e0 Merge pull request #58740 from YuxiJin-tobeyjin/add-ut-for-kuberuntime-gc
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

add ut for kuberuntime-gc

**What this PR does / why we need it**:
Add ut for kuberuntime-gc to cover more situations:
1) Add two uncovered cases to test sandbox-gc 
(1)  When there are more than one exited sandboxes,the older exited sandboxes without containers for existing pods should be garbage collected;
(2)  Even though there are more than one exited sandboxes,the older exited sandboxes with containers for existing pods should not be garbage collected. 
2) Add one uncovered case to test container-gc
(1)  To cover the situation when allSourcesReady is set false;

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #

**Special notes for your reviewer**:

**Release note**:

```release-note
 "NONE"
```
2018-04-19 12:27:19 -07:00
..
2018-03-27 09:29:35 -07:00
2018-01-29 15:07:51 -05:00
2017-10-15 18:18:13 -07:00
2018-02-23 01:42:35 +00:00
2018-04-11 09:26:02 -07:00
2018-02-16 13:43:01 -08:00
2018-04-11 09:26:02 -07:00
2018-04-11 18:35:24 +02:00
2018-04-18 09:55:57 -07:00
2018-02-24 17:39:21 +08:00
2018-04-18 09:55:57 -07:00
2018-04-18 09:55:57 -07:00
2018-02-20 10:38:41 -05:00
2018-01-29 21:44:54 -08:00