-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
tests: improve _send_email
#3105
Conversation
The function now handles IP, Port and more path names, as well as extra options you can supply to `nc`.
Now, the method (invocation) really has become easier.
This PR is waiting for #3006 :) (to avoid forcing the OP to resolve merge conflicts again). |
119aa80
to
1397786
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the hassle, but I think _send_email()
needs to swap param 2 and 3 around so the empty ''
values can be dropped? 🤔
CONTAINER_NAME is now assumed to be set, which makes invocation even easier for common cases. Moreover, the helper that additionally retrieves the mail ID was renamed (_send_mail_* -> _send_email_*) to be canonical with _send_mail; it also takes the same arguments now, and has the same assumptions when calling it.
CI really is not feeling well today. I'm seeing the same weird test failures as in #3006, even though both PRs do not touch Amavis at all. @polarathene you mentioned a timing issue, because our tests are now running with less delay. Should we introduce additional short sleep periods? |
Yeah, seems that may be necessary for this test. I think Justificationdocker-mailserver/test/tests/parallel/set3/mta/smtp_delivery.bats Lines 50 to 59 in 9724060
It's likely that the change detection completes, and reloads Amavis: docker-mailserver/target/scripts/check-for-changes.sh Lines 86 to 94 in 9724060
And that possibly isn't a quick process for Amavis to reload / restart, but ports may already be available 🤷♂️ bumping up the Common failure for future reference as action logs will eventually expire
|
Description
The function now handles IP, Port and more path names, as well as extra options you can supply to
nc
.Type of change
Checklist:
docs/
)