Skip to content

Commit

Permalink
UPSTREAM: 98956: kubelet: Simulate KillPod in TestSyncPodsDeletesWhen…
Browse files Browse the repository at this point in the history
…SourcesAreReadyPerQOS
  • Loading branch information
gjkim42 authored and damemi committed Jul 7, 2021
1 parent 044b528 commit 4414ff5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/kubelet/kubelet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,9 @@ func TestSyncPodsDeletesWhenSourcesAreReadyPerQOS(t *testing.T) {
// assert that unwanted pods were killed
fakeRuntime.AssertKilledPods([]string{"12345678"})

// simulate Runtime.KillPod
fakeRuntime.PodList = nil

kubelet.HandlePodCleanups()
kubelet.HandlePodCleanups()
kubelet.HandlePodCleanups()
Expand Down

0 comments on commit 4414ff5

Please sign in to comment.