Skip to content

test: skip operationally down interfaces in my_ip_interfaces() - #535

Merged
keepsimple1 merged 1 commit into
mainfrom
fix/test-skip-down-interfaces
Oct 30, 2026
Merged

keepsimple1 merged 1 commit into
mainfrom
fix/test-skip-down-interfaces

Conversation

@keepsimple1

Copy link
Copy Markdown
Owner

integration_success fails on GitHub's Ubuntu runners (seen in #530, the first CI config that actually runs tests on Linux):

My IP 3 addr(s):
fe80::6245:bdff:feb5:5e66
10.1.0.71
172.17.0.1
...
Search started for _mdns-sd-it._udp.local. on 2 interfaces [lo (1), eth0 (2)]
...
panicked at tests/mdns_test.rs:133:5: left: 2, right: 3

172.17.0.1 is on docker0, which is operationally down on the runner. The daemon's my_ip_interfaces_inner() skips down interfaces (#369), but the test helper my_ip_interfaces() in tests/mdns_test.rs didn't, so the test expected an address the daemon never announces.

This adds the same is_oper_up() check to the test helper.

Checked locally: cargo fmt, cargo clippy --all-targets --all-features -- -D warnings, and cargo +1.71.0 check --tests. Tests not run locally; relying on CI.

🤖 Generated with Claude Code

The daemon ignores interfaces that are not operationally up (#369), but
the test helper still counted their addresses. On GitHub's Ubuntu
runners the docker0 bridge is down yet has 172.17.0.1, so
integration_success expected 3 resolved addresses and got 2.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@keepsimple1
keepsimple1 merged commit 0749b87 into main Oct 30, 2026
4 checks passed
@keepsimple1
keepsimple1 deleted the fix/test-skip-down-interfaces branch October 30, 2026 03:43
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