mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
fix pleg TestRelisting
This commit is contained in:
parent
ac2a1b7837
commit
ddf1c5d3e9
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user