Fix files missing gofmt
This commit is contained in:
@@ -111,7 +111,7 @@ func TestMinionProxy(t *testing.T) {
|
|||||||
fmt.Sprintf("/%s", proxy.Host): "/",
|
fmt.Sprintf("/%s", proxy.Host): "/",
|
||||||
}
|
}
|
||||||
|
|
||||||
for value, _ := range failureCases {
|
for value := range failureCases {
|
||||||
resp, err := http.Get(fmt.Sprintf("%s%s", server.URL, value))
|
resp, err := http.Get(fmt.Sprintf("%s%s", server.URL, value))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("unexpected error for %s: %v", value, err)
|
t.Errorf("unexpected error for %s: %v", value, err)
|
||||||
|
@@ -75,9 +75,7 @@ func TestReadFromFile(t *testing.T) {
|
|||||||
Manifest: api.ContainerManifest{
|
Manifest: api.ContainerManifest{
|
||||||
ID: "test",
|
ID: "test",
|
||||||
Version: "v1beta1",
|
Version: "v1beta1",
|
||||||
Containers: []api.Container{api.Container{
|
Containers: []api.Container{{Image: "test/image"}},
|
||||||
Image: "test/image"},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
if !reflect.DeepEqual(expected, update) {
|
if !reflect.DeepEqual(expected, update) {
|
||||||
|
@@ -106,7 +106,7 @@ func TestContainer(t *testing.T) {
|
|||||||
if len(received) != 1 {
|
if len(received) != 1 {
|
||||||
t.Errorf("Expected 1 manifest, but got %v", len(received))
|
t.Errorf("Expected 1 manifest, but got %v", len(received))
|
||||||
}
|
}
|
||||||
expectedPods := []Pod{Pod{Name: "1", Manifest: expected[0]}}
|
expectedPods := []Pod{{Name: "1", Manifest: expected[0]}}
|
||||||
if !reflect.DeepEqual(expectedPods, received[0]) {
|
if !reflect.DeepEqual(expectedPods, received[0]) {
|
||||||
t.Errorf("Expected %#v, but got %#v", expectedPods, received[0])
|
t.Errorf("Expected %#v, but got %#v", expectedPods, received[0])
|
||||||
}
|
}
|
||||||
@@ -129,7 +129,7 @@ func TestContainers(t *testing.T) {
|
|||||||
if len(received) != 1 {
|
if len(received) != 1 {
|
||||||
t.Errorf("Expected 1 update, but got %v", len(received))
|
t.Errorf("Expected 1 update, but got %v", len(received))
|
||||||
}
|
}
|
||||||
expectedPods := []Pod{Pod{Name: "1", Manifest: expected[0]}, Pod{Name: "2", Manifest: expected[1]}}
|
expectedPods := []Pod{{Name: "1", Manifest: expected[0]}, {Name: "2", Manifest: expected[1]}}
|
||||||
if !reflect.DeepEqual(expectedPods, received[0]) {
|
if !reflect.DeepEqual(expectedPods, received[0]) {
|
||||||
t.Errorf("Expected %#v, but got %#v", expectedPods, received[0])
|
t.Errorf("Expected %#v, but got %#v", expectedPods, received[0])
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user