Closed ooggss closed 3 months ago
Failure to resolve MX record of youtube.com is a problem with your system resolver. Normally the results looks like this:
$ dig +short MX youtube.com
0 smtp.google.com.
As for securejoin::tests::test_setup_contact_wrong_alice_gossip
it should not fail like this and passes in CI. Is it reproducible?
Also make sure to use cargo nextest run
instead of cargo test
.
Failure to resolve MX record of youtube.com is a problem with your system resolver. Normally the results looks like this:
$ dig +short MX youtube.com 0 smtp.google.com.
As for
securejoin::tests::test_setup_contact_wrong_alice_gossip
it should not fail like this and passes in CI. Is it reproducible?Also make sure to use
cargo nextest run
instead ofcargo test
.
Thanks for your reply!!
for "resolve MX record", I use dig +short MX youtube.com
but got nothing
and for "securejoin::tests::test_setup_contact_wrong_alice_gossip", I try it again without any change but it passes this time
Besides, cargo nextest run
does speed up the process. Thanks a lot!
for "resolve MX record", I use dig +short MX youtube.com but got nothing
Apparently your DNS resolver is faulty or censored. Consider configuring your system to use some DNS over HTTPS server or DNS over TLS if you use systemd-resolved as it still does not support DoH.
As for cargo test
, it does not isolate tests and runs multiple tests in the same process, which may result in spurious failures. cargo nextest run
runs each test in a separate process.
securejoin::tests::test_setup_contact_wrong_alice_gossip
uses test_setup_contact_ex
which uses SystemTime::shift
internally, so pretty sure failure was caused by using cargo test
instead of cargo nextest run
and some other test shifting the time.
As for MX resolution results, this is not a problem with the test.
Operating System
linux
Delta Chat version
commit:36a480fec8ca23dbbbd490b76d485616f3591e28
Expected behavior
unit tests passing
Actual behavior
2 unit test failing
Steps to reproduce the problem
1、Checkout current HEAD (36a480fec8ca23dbbbd490b76d485616f3591e28) of the deltachat-core-rust repository 2、run
cargo test
Debug logs