fix pod eviction for gracefully terminationg pods

This commit is contained in:
Mike Danese
2016-02-26 16:59:16 -08:00
parent 420d98fd8b
commit c1a7e280a3
2 changed files with 11 additions and 17 deletions

View File

@@ -1040,8 +1040,9 @@ func TestCheckPod(t *testing.T) {
for i, tc := range tcs {
var deleteCalls int
nc.forcefullyDeletePod = func(_ *api.Pod) {
nc.forcefullyDeletePod = func(_ *api.Pod) error {
deleteCalls++
return nil
}
nc.maybeDeleteTerminatingPod(&tc.pod)