From 5d5c660f4b46756922c7a9800dda38eb52644e9b Mon Sep 17 00:00:00 2001 From: Shawn Smith Date: Sun, 10 May 2015 13:25:14 +0900 Subject: [PATCH] Add missing Errorf formatting directives --- test/integration/scheduler_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/scheduler_test.go b/test/integration/scheduler_test.go index 4ce9efe4341..e2dff87395f 100644 --- a/test/integration/scheduler_test.go +++ b/test/integration/scheduler_test.go @@ -250,7 +250,7 @@ func DoTestUnschedulableNodes(t *testing.T, restClient *client.Client, nodeStore t.Errorf("Pod scheduled successfully on unschedulable nodes") } if err != wait.ErrWaitTimeout { - t.Errorf("Test %d: failed while trying to confirm the pod does not get scheduled on the node: %v", err) + t.Errorf("Test %d: failed while trying to confirm the pod does not get scheduled on the node: %v", i, err) } else { t.Logf("Test %d: Pod did not get scheduled on an unschedulable node", i) } @@ -265,7 +265,7 @@ func DoTestUnschedulableNodes(t *testing.T, restClient *client.Client, nodeStore // Wait until the pod is scheduled. err = wait.Poll(time.Second, time.Second*10, podScheduled(restClient, myPod.Namespace, myPod.Name)) if err != nil { - t.Errorf("Test %d: failed to schedule a pod: %v", err) + t.Errorf("Test %d: failed to schedule a pod: %v", i, err) } else { t.Logf("Test %d: Pod got scheduled on a schedulable node", i) }