Cleanup of GetLocalEndpointIPs

unexported GetLocalEndpointIPs and made it a endpointsMap struct method
This commit is contained in:
Jacob Tanenbaum
2019-04-04 14:53:11 -04:00
parent 1d60557c87
commit 5201cc994c
2 changed files with 4 additions and 4 deletions

View File

@@ -112,7 +112,7 @@ func TestGetLocalEndpointIPs(t *testing.T) {
for tci, tc := range testCases {
// outputs
localIPs := GetLocalEndpointIPs(tc.endpointsMap)
localIPs := tc.endpointsMap.getLocalEndpointIPs()
if !reflect.DeepEqual(localIPs, tc.expected) {
t.Errorf("[%d] expected %#v, got %#v", tci, tc.expected, localIPs)