diff --git a/test/integration/scheduler/local-pv-neg-affinity_test.go b/test/integration/scheduler/local-pv-neg-affinity_test.go index 51964137efe..fbe645eb577 100644 --- a/test/integration/scheduler/local-pv-neg-affinity_test.go +++ b/test/integration/scheduler/local-pv-neg-affinity_test.go @@ -19,7 +19,6 @@ package scheduler // This file tests the VolumeScheduling feature. import ( - "encoding/json" "fmt" "net/http" "net/http/httptest" @@ -311,13 +310,3 @@ func markNodeSelector(pod *v1.Pod, node string) { } pod.Spec.NodeSelector = ns } - -func printIndentedJson(data interface{}) string { - var indentedJSON []byte - - indentedJSON, err := json.MarshalIndent(data, "", "\t") - if err != nil { - return fmt.Sprintf("JSON parse error: %v", err) - } - return string(indentedJSON) -} diff --git a/test/integration/scheduler/util.go b/test/integration/scheduler/util.go index 1ccd34826ea..f3d63843086 100644 --- a/test/integration/scheduler/util.go +++ b/test/integration/scheduler/util.go @@ -381,15 +381,3 @@ func cleanupPods(cs clientset.Interface, t *testing.T, pods []*v1.Pod) { } } } - -// printAllPods prints a list of all the pods and their node names. This is used -// for debugging. -func printAllPods(t *testing.T, cs clientset.Interface, nsName string) { - podList, err := cs.CoreV1().Pods(nsName).List(metav1.ListOptions{}) - if err != nil { - t.Logf("Error getting pods: %v", err) - } - for _, pod := range podList.Items { - t.Logf("Pod:\n\tName:%v\n\tNamespace:%v\n\tNode Name:%v\n", pod.Name, pod.Namespace, pod.Spec.NodeName) - } -}