From e6dfdb240fdd43d5d31fa2cc03e5f68e82d33ae1 Mon Sep 17 00:00:00 2001 From: kerthcet Date: Mon, 4 Sep 2023 20:31:48 +0800 Subject: [PATCH] Output the error message for better analylsis Signed-off-by: kerthcet --- test/integration/scheduler/queue_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/integration/scheduler/queue_test.go b/test/integration/scheduler/queue_test.go index 7b68fcc8681..461e04de16c 100644 --- a/test/integration/scheduler/queue_test.go +++ b/test/integration/scheduler/queue_test.go @@ -489,16 +489,16 @@ func TestRequeueByBindFailure(t *testing.T) { } // first binding try should fail. - err := wait.PollUntilContextTimeout(ctx, 200*time.Millisecond, wait.ForeverTestTimeout, false, testutils.PodSchedulingError(cs, ns, "pod-1")) + err := wait.PollUntilContextTimeout(ctx, 200*time.Millisecond, wait.ForeverTestTimeout, false, testutils.PodSchedulingError(cs, ns, pod.Name)) if err != nil { - t.Fatalf("Expect pod-1 to be rejected by the bind plugin") + t.Fatalf("Expect pod-1 to be rejected by the bind plugin: %v", err) } // The pod should be enqueued to activeQ/backoffQ without any event. // The pod should be scheduled in the second binding try. - err = wait.PollUntilContextTimeout(ctx, 200*time.Millisecond, wait.ForeverTestTimeout, false, testutils.PodScheduled(cs, ns, "pod-1")) + err = wait.PollUntilContextTimeout(ctx, 200*time.Millisecond, wait.ForeverTestTimeout, false, testutils.PodScheduled(cs, ns, pod.Name)) if err != nil { - t.Fatalf("Expect pod-1 to be scheduled by the bind plugin in the second binding try") + t.Fatalf("Expect pod-1 to be scheduled by the bind plugin in the second binding try: %v", err) } }