mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 14:14:39 +00:00
Fix files missing gofmt
This commit is contained in:
@@ -73,11 +73,9 @@ func TestReadFromFile(t *testing.T) {
|
||||
expected := CreatePodUpdate(kubelet.SET, kubelet.Pod{
|
||||
Name: "test",
|
||||
Manifest: api.ContainerManifest{
|
||||
ID: "test",
|
||||
Version: "v1beta1",
|
||||
Containers: []api.Container{api.Container{
|
||||
Image: "test/image"},
|
||||
},
|
||||
ID: "test",
|
||||
Version: "v1beta1",
|
||||
Containers: []api.Container{{Image: "test/image"}},
|
||||
},
|
||||
})
|
||||
if !reflect.DeepEqual(expected, update) {
|
||||
|
@@ -106,7 +106,7 @@ func TestContainer(t *testing.T) {
|
||||
if len(received) != 1 {
|
||||
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]) {
|
||||
t.Errorf("Expected %#v, but got %#v", expectedPods, received[0])
|
||||
}
|
||||
@@ -129,7 +129,7 @@ func TestContainers(t *testing.T) {
|
||||
if len(received) != 1 {
|
||||
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]) {
|
||||
t.Errorf("Expected %#v, but got %#v", expectedPods, received[0])
|
||||
}
|
||||
|
Reference in New Issue
Block a user