mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +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
|
||||
// sees them
|
||||
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))
|
||||
}
|
||||
if len(podWorkers.podSyncStatuses) != 2 {
|
||||
|
Loading…
Reference in New Issue
Block a user