Fix gofmt errors

Kubernetes-commit: 6681835b0c00122a408bd4addd47b02840b6208c
This commit is contained in:
Christoph Blecker 2017-03-28 17:12:04 -07:00 committed by Kubernetes Publisher
parent b128bee2cc
commit ad53524c7c
2 changed files with 9 additions and 9 deletions

View File

@ -617,8 +617,8 @@ func TestServerPreferredNamespacedResources(t *testing.T) {
w.Write(output) w.Write(output)
}, },
expected: map[schema.GroupVersionResource]struct{}{ expected: map[schema.GroupVersionResource]struct{}{
schema.GroupVersionResource{Group: "", Version: "v1", Resource: "pods"}: {}, {Group: "", Version: "v1", Resource: "pods"}: {},
schema.GroupVersionResource{Group: "", Version: "v1", Resource: "services"}: {}, {Group: "", Version: "v1", Resource: "services"}: {},
}, },
}, },
{ {
@ -660,8 +660,8 @@ func TestServerPreferredNamespacedResources(t *testing.T) {
w.Write(output) w.Write(output)
}, },
expected: map[schema.GroupVersionResource]struct{}{ expected: map[schema.GroupVersionResource]struct{}{
schema.GroupVersionResource{Group: "batch", Version: "v1", Resource: "jobs"}: {}, {Group: "batch", Version: "v1", Resource: "jobs"}: {},
schema.GroupVersionResource{Group: "batch", Version: "v2alpha1", Resource: "cronjobs"}: {}, {Group: "batch", Version: "v2alpha1", Resource: "cronjobs"}: {},
}, },
}, },
{ {
@ -703,8 +703,8 @@ func TestServerPreferredNamespacedResources(t *testing.T) {
w.Write(output) w.Write(output)
}, },
expected: map[schema.GroupVersionResource]struct{}{ expected: map[schema.GroupVersionResource]struct{}{
schema.GroupVersionResource{Group: "batch", Version: "v2alpha1", Resource: "jobs"}: {}, {Group: "batch", Version: "v2alpha1", Resource: "jobs"}: {},
schema.GroupVersionResource{Group: "batch", Version: "v2alpha1", Resource: "cronjobs"}: {}, {Group: "batch", Version: "v2alpha1", Resource: "cronjobs"}: {},
}, },
}, },
} }

View File

@ -307,13 +307,13 @@ func TestUpdate(t *testing.T) {
// asynchronous, there are a lot of valid possibilities. // asynchronous, there are a lot of valid possibilities.
type pair struct{ from, to string } type pair struct{ from, to string }
allowedTransitions := map[pair]bool{ allowedTransitions := map[pair]bool{
pair{FROM, TO}: true, {FROM, TO}: true,
// Because a resync can happen when we've already observed one // Because a resync can happen when we've already observed one
// of the above but before the item is deleted. // of the above but before the item is deleted.
pair{TO, TO}: true, {TO, TO}: true,
// Because a resync could happen before we observe an update. // Because a resync could happen before we observe an update.
pair{FROM, FROM}: true, {FROM, FROM}: true,
} }
pod := func(name, check string, final bool) *v1.Pod { pod := func(name, check string, final bool) *v1.Pod {