Commit 6a0c0692 authored by Jeff Grafton's avatar Jeff Grafton

gofmt proxier_test for go1.8.1

parent e48a4f0a
...@@ -1307,7 +1307,7 @@ func Test_getLocalIPs(t *testing.T) { ...@@ -1307,7 +1307,7 @@ func Test_getLocalIPs(t *testing.T) {
}, },
}, },
expected: map[types.NamespacedName]sets.String{ 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. // Case[3]: named local and non-local ports for the same IP.
...@@ -1322,7 +1322,7 @@ func Test_getLocalIPs(t *testing.T) { ...@@ -1322,7 +1322,7 @@ func Test_getLocalIPs(t *testing.T) {
}, },
}, },
expected: map[types.NamespacedName]sets.String{ 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. // Case[4]: named local and non-local ports for different IPs.
...@@ -1346,8 +1346,8 @@ func Test_getLocalIPs(t *testing.T) { ...@@ -1346,8 +1346,8 @@ func Test_getLocalIPs(t *testing.T) {
}, },
}, },
expected: map[types.NamespacedName]sets.String{ 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"), {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: "ns4", Name: "ep4"}: sets.NewString("4.4.4.4", "4.4.4.6"),
}, },
}} }}
......
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