Merge pull request #102635 from charlesxsh/fix-linux-test

fix a potential deadlock in graceful node shutdown unit tests
This commit is contained in:
Kubernetes Prow Robot 2021-06-21 16:27:45 -07:00 committed by GitHub
commit 62fdaabe82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -211,7 +211,7 @@ func TestManager(t *testing.T) {
GracePeriod int64
}
podKillChan := make(chan PodKillInfo)
podKillChan := make(chan PodKillInfo, 1)
killPodsFunc := func(pod *v1.Pod, status v1.PodStatus, gracePeriodOverride *int64) error {
var gracePeriod int64
if gracePeriodOverride != nil {