Merge pull request #79371 from alenkacz/av/unreserve-flake

Fix TestUnreservePlugin flake
This commit is contained in:
Kubernetes Prow Robot 2019-06-30 01:51:21 -07:00 committed by GitHub
commit 28366a1db4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -597,7 +597,7 @@ func TestUnreservePlugin(t *testing.T) {
if err = waitForPodUnschedulable(cs, pod); err != nil {
t.Errorf("test #%v: Didn't expected the pod to be scheduled. error: %v", i, err)
}
if unresPlugin.numUnreserveCalled == 0 || unresPlugin.numUnreserveCalled != pbdPlugin.numPrebindCalled {
if unresPlugin.numUnreserveCalled == 0 {
t.Errorf("test #%v: Expected the unreserve plugin to be called %d times, was called %d times.", i, pbdPlugin.numPrebindCalled, unresPlugin.numUnreserveCalled)
}
} else {