From 6a0c06926abfd880adc2a13469689db5fb06bfa1 Mon Sep 17 00:00:00 2001 From: Jeff Grafton Date: Tue, 25 Apr 2017 11:23:59 -0700 Subject: [PATCH] gofmt proxier_test for go1.8.1 --- pkg/proxy/iptables/proxier_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/proxy/iptables/proxier_test.go b/pkg/proxy/iptables/proxier_test.go index b599d523759..1fed2161f92 100644 --- a/pkg/proxy/iptables/proxier_test.go +++ b/pkg/proxy/iptables/proxier_test.go @@ -1307,7 +1307,7 @@ func Test_getLocalIPs(t *testing.T) { }, }, expected: map[types.NamespacedName]sets.String{ - types.NamespacedName{Namespace: "ns1", Name: "ep1"}: sets.NewString("1.1.1.1"), + {Namespace: "ns1", Name: "ep1"}: sets.NewString("1.1.1.1"), }, }, { // Case[3]: named local and non-local ports for the same IP. @@ -1322,7 +1322,7 @@ func Test_getLocalIPs(t *testing.T) { }, }, expected: map[types.NamespacedName]sets.String{ - types.NamespacedName{Namespace: "ns1", Name: "ep1"}: sets.NewString("1.1.1.2"), + {Namespace: "ns1", Name: "ep1"}: sets.NewString("1.1.1.2"), }, }, { // Case[4]: named local and non-local ports for different IPs. @@ -1346,8 +1346,8 @@ func Test_getLocalIPs(t *testing.T) { }, }, expected: map[types.NamespacedName]sets.String{ - types.NamespacedName{Namespace: "ns2", Name: "ep2"}: sets.NewString("2.2.2.2", "2.2.2.22", "2.2.2.3"), - types.NamespacedName{Namespace: "ns4", Name: "ep4"}: sets.NewString("4.4.4.4", "4.4.4.6"), + {Namespace: "ns2", Name: "ep2"}: sets.NewString("2.2.2.2", "2.2.2.22", "2.2.2.3"), + {Namespace: "ns4", Name: "ep4"}: sets.NewString("4.4.4.4", "4.4.4.6"), }, }}