Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg/ip/iface_windows_test.go: fix TestGetInterfaceByIP #1680

Merged
merged 1 commit into from
Nov 30, 2022
Merged

pkg/ip/iface_windows_test.go: fix TestGetInterfaceByIP #1680

merged 1 commit into from
Nov 30, 2022

Conversation

UweErikMartin
Copy link
Contributor

fix type mismatch in windows test TestGetInterfaceByIP

Description

GetInterfaceIP4Addrs, used in windows test function TestGetInterfaceByIP (file iface_windows_test.go), returns a slice of IPAddresses. The test is done only for single IP address instead of the returned slice. This leads to a type-mismatch error. To fix this a loop was introduced to check all IP Addresses of the interface.

None required

GetInterfaceIP4Addrs returns slice of IP Addresses. Add loop around to test all addresses to fix a type mismatch
@rbrtbnfgl rbrtbnfgl merged commit bf5f560 into flannel-io:master Nov 30, 2022
@UweErikMartin UweErikMartin deleted the fix_iface_windows_test.go branch May 13, 2023 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants