mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +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
|
// The second relist should not send out any event because no container has
|
||||||
// changed.
|
// changed.
|
||||||
pleg.relist()
|
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{
|
runtime.AllPodList = []*containertest.FakePod{
|
||||||
{Pod: &kubecontainer.Pod{
|
{Pod: &kubecontainer.Pod{
|
||||||
|
Loading…
Reference in New Issue
Block a user