Merge pull request #81006 from hex108/fix_test

Refine TestFilterPlugin
This commit is contained in:
Kubernetes Prow Robot 2019-08-08 06:27:18 -07:00 committed by GitHub
commit 678bc948d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1464,7 +1464,7 @@ func TestFilterPlugin(t *testing.T) {
}
if fail {
if err = wait.Poll(10*time.Millisecond, 30*time.Second, podSchedulingError(cs, pod.Namespace, pod.Name)); err == nil {
if err = wait.Poll(10*time.Millisecond, 30*time.Second, podUnschedulable(cs, pod.Namespace, pod.Name)); err != nil {
t.Errorf("Didn't expect the pod to be scheduled.")
}
} else {