From a2f178ecd71804a28f7186ad93648b8c0929cbf8 Mon Sep 17 00:00:00 2001 From: Jun Gong Date: Tue, 6 Aug 2019 13:41:32 +0800 Subject: [PATCH] Refine TestFilterPlugin --- test/integration/scheduler/framework_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/scheduler/framework_test.go b/test/integration/scheduler/framework_test.go index 1befd028b3b..285d8adab6b 100644 --- a/test/integration/scheduler/framework_test.go +++ b/test/integration/scheduler/framework_test.go @@ -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 {