Skip to content

fix(test): do not use loopback IP for IMAP connectivity test #9401

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

Merged
merged 1 commit into from
Jul 1, 2025

Conversation

yantarou
Copy link
Contributor

When running a local IMAP server on the development host, the open() with connection error should throw IMAP test will succeed connecting to the IMAP server, thus making the test fail.

This patch changes the use of a loopback IP address (127.1.2.3) to a non-routable RFC-5737 TEST-NET-1 address (192.0.2.123).

Fixes: #9400

When running a local IMAP server on the development host, the "open() with connection error should throw" IMAP test will succeed connecting to the IMAP server, thus making the test fail.

This patch changes the use of a loopback IP address (127.1.2.3) to a non-routable RFC-5737 TEST-NET-1 address (192.0.2.123).

Fixes: #9400
@yantarou yantarou requested a review from a team as a code owner June 28, 2025 10:55
@yantarou yantarou requested a review from wmontwe June 28, 2025 10:55
@wmontwe wmontwe self-assigned this Jun 30, 2025
Copy link
Member

@wmontwe wmontwe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@wmontwe wmontwe merged commit add0bf6 into thunderbird:main Jul 1, 2025
3 checks passed
@thunderbird-botmobile
Copy link
Contributor

Thanks for your contribution! Your pull request has been merged and will be part of Thunderbird 12. We appreciate the time and effort you put into improving Thunderbird. If you haven’t already, you’re welcome to join our Matrix chat for contributors. It’s where we discuss development and help each other out. https://matrix.to/#/#tb-android-dev:mozilla.org
Hope to see you there! 🚀📱🐦

@thunderbird-botmobile thunderbird-botmobile bot added this to the Thunderbird 12 milestone Jul 1, 2025
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.

Task ":mail:protocols:imap:test" may fail when running an IMAP server on the local development host
2 participants