Skip to content

fix(test): use all IPv4 interfaces in test_disable_interface_cache#435

Open
keepsimple1 wants to merge 2 commits intomainfrom
fix-test
Open

fix(test): use all IPv4 interfaces in test_disable_interface_cache#435
keepsimple1 wants to merge 2 commits intomainfrom
fix-test

Conversation

@keepsimple1
Copy link
Owner

This is to fix issue #432 .

Problem

In test_disable_interface_cache, we only disable the first IPv4 address returned. On a host with multiple IPv4 addresses, it is possible that the service record is received again via another IPv4 address (loopback enabled or even on the same subnet) and hence resolve the service instance again.

Changes

Disable all IPv4 addresses on the host except the localhost loopback address, hence remove the cache on all IPv4 interfaces.

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.

1 participant

Comments