Merge pull request #85390 from xiaoanyunfei/bugfix/plegTestRelisting

fix pleg TestRelisting
This commit is contained in:
Kubernetes Prow Robot 2020-06-20 14:40:38 -07:00 committed by GitHub
commit 628102d038
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,8 @@ func TestRelisting(t *testing.T) {
// The second relist should not send out any event because no container has
// changed.
pleg.relist()
verifyEvents(t, expected, actual)
actual = getEventsFromChannel(ch)
assert.True(t, len(actual) == 0, "no container has changed, event length should be 0")
runtime.AllPodList = []*containertest.FakePod{
{Pod: &kubecontainer.Pod{