Commit 9a656407 authored by Vishnu kannan's avatar Vishnu kannan

fix go vet issues

parent cc5f5474
...@@ -189,16 +189,16 @@ func TestTryOrdering(t *testing.T) { ...@@ -189,16 +189,16 @@ func TestTryOrdering(t *testing.T) {
switch value.Value { switch value.Value {
case "first": case "first":
if !value.AddedAt.Equal(time.Unix(0, time.Millisecond.Nanoseconds())) { if !value.AddedAt.Equal(time.Unix(0, time.Millisecond.Nanoseconds())) {
t.Fatalf("added time for %s is %d", value.Value, value.AddedAt) t.Fatalf("added time for %s is %v", value.Value, value.AddedAt)
} }
case "second": case "second":
if !value.AddedAt.Equal(time.Unix(0, 2*time.Millisecond.Nanoseconds())) { if !value.AddedAt.Equal(time.Unix(0, 2*time.Millisecond.Nanoseconds())) {
t.Fatalf("added time for %s is %d", value.Value, value.AddedAt) t.Fatalf("added time for %s is %v", value.Value, value.AddedAt)
} }
if hasQueued { if hasQueued {
if !value.ProcessAt.Equal(time.Unix(0, 6*time.Millisecond.Nanoseconds())) { if !value.ProcessAt.Equal(time.Unix(0, 6*time.Millisecond.Nanoseconds())) {
t.Fatalf("process time for %s is %d", value.Value, value.ProcessAt) t.Fatalf("process time for %s is %v", value.Value, value.ProcessAt)
} }
break break
} }
...@@ -209,7 +209,7 @@ func TestTryOrdering(t *testing.T) { ...@@ -209,7 +209,7 @@ func TestTryOrdering(t *testing.T) {
case "third": case "third":
if !value.AddedAt.Equal(time.Unix(0, 3*time.Millisecond.Nanoseconds())) { if !value.AddedAt.Equal(time.Unix(0, 3*time.Millisecond.Nanoseconds())) {
t.Fatalf("added time for %s is %d", value.Value, value.AddedAt) t.Fatalf("added time for %s is %v", value.Value, value.AddedAt)
} }
} }
order = append(order, value.Value) order = append(order, value.Value)
......
...@@ -210,7 +210,7 @@ func TestIgnoreDeleteNotFound(t *testing.T) { ...@@ -210,7 +210,7 @@ func TestIgnoreDeleteNotFound(t *testing.T) {
t.Fatalf("expect the DeletionGracePeriodSeconds to be set") t.Fatalf("expect the DeletionGracePeriodSeconds to be set")
} }
if *deletedPod.DeletionGracePeriodSeconds != 0 { if *deletedPod.DeletionGracePeriodSeconds != 0 {
t.Errorf("expect the DeletionGracePeriodSeconds to be 0, got %d", *deletedPod.DeletionTimestamp) t.Errorf("expect the DeletionGracePeriodSeconds to be 0, got %v", *deletedPod.DeletionTimestamp)
} }
} }
......
...@@ -186,7 +186,7 @@ func runTest(f *framework.Framework) error { ...@@ -186,7 +186,7 @@ func runTest(f *framework.Framework) error {
return err return err
} }
if len(nodeList.Items) != 1 { if len(nodeList.Items) != 1 {
return fmt.Errorf("Unexpected number of node objects for node e2e. Expects only one node: %+V", nodeList) return fmt.Errorf("Unexpected number of node objects for node e2e. Expects only one node: %+v", nodeList)
} }
node := nodeList.Items[0] node := nodeList.Items[0]
capacity := node.Status.Capacity capacity := node.Status.Capacity
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment