mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #116557 from smarterclayton/sync_known_race
kubelet: TestSyncKnownPods should not race
This commit is contained in:
commit
dfc63f218c
@ -1637,7 +1637,8 @@ func TestSyncKnownPods(t *testing.T) {
|
|||||||
// verify workers that are not terminated stay open even if config no longer
|
// verify workers that are not terminated stay open even if config no longer
|
||||||
// sees them
|
// sees them
|
||||||
podWorkers.SyncKnownPods(nil)
|
podWorkers.SyncKnownPods(nil)
|
||||||
if len(podWorkers.podUpdates) != 2 {
|
drainAllWorkers(podWorkers)
|
||||||
|
if len(podWorkers.podUpdates) != 0 {
|
||||||
t.Errorf("Incorrect number of open channels %v", len(podWorkers.podUpdates))
|
t.Errorf("Incorrect number of open channels %v", len(podWorkers.podUpdates))
|
||||||
}
|
}
|
||||||
if len(podWorkers.podSyncStatuses) != 2 {
|
if len(podWorkers.podSyncStatuses) != 2 {
|
||||||
|
Loading…
Reference in New Issue
Block a user