Fix reporting network_programming_latency metrics in kube-proxy

This commit is contained in:
wojtekt
2020-10-07 15:02:20 +02:00
parent e99df0e5a7
commit 6e4aa0f27d
2 changed files with 18 additions and 2 deletions

View File

@@ -1413,6 +1413,14 @@ func TestLastChangeTriggerTime(t *testing.T) {
},
expected: map[types.NamespacedName][]time.Time{createName("ns", "ep1"): {t2}},
},
{
name: "delete",
scenario: func(fp *FakeProxier) {
e := createEndpoints("ns", "ep1", t1)
fp.deleteEndpoints(e)
},
expected: map[types.NamespacedName][]time.Time{},
},
}
for _, tc := range testCases {