mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
gofmt proxier_test for go1.8.1
This commit is contained in:
parent
e48a4f0af7
commit
6a0c06926a
@ -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) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
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) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
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"),
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user