fix pleg TestRelisting

This commit is contained in:
xiaofei.sun 2020-06-18 21:46:55 +08:00
parent ac2a1b7837
commit ddf1c5d3e9

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{