Skip to content

Commit 90723eb

Browse files
authored
Merge pull request kubernetes#93985 from MHBauer/fixes-93905
update test to match validation filter of pods
2 parents 80ada96 + 7de6830 commit 90723eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/kubelet/config/config_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ func TestInvalidPodFiltered(t *testing.T) {
189189
channel <- podUpdate
190190
expectPodUpdate(t, ch, CreatePodUpdate(kubetypes.ADD, TestSource, CreateValidPod("foo", "new")))
191191

192-
// add an invalid update
193-
podUpdate = CreatePodUpdate(kubetypes.UPDATE, TestSource, &v1.Pod{ObjectMeta: metav1.ObjectMeta{Name: "foo"}})
192+
// add an invalid update, pod with the same name
193+
podUpdate = CreatePodUpdate(kubetypes.ADD, TestSource, CreateValidPod("foo", "new"))
194194
channel <- podUpdate
195195
expectNoPodUpdate(t, ch)
196196
}

0 commit comments

Comments
 (0)