fix(test): update ip of example.com
#2187
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When running test of my app, I found that the test failed due to the IP of
example.com
being changed and also discovered that hickory dns has the same issue. So I proceeded to take the following steps to fix the test.93.184.216.34
to93.184.215.14
2606:2800:220:1:248:1893:25c8:1946
to2606:2800:21f:cb07:6820:80da:af6b:8b2c
I searched for all occurrences and replaced them until
cargo test
is passed. And I'm unsure whether I need to do anything more for the tests that run locally. For example,hickory-dns/tests/integration-tests/tests/sqlite_authority_tests.rs
Line 55 in 76a4b84
Reference: Here is another repo that fixed this issues 1d ago Chia-Network/chia-blockchain#17894
I hope you can review it patiently, as there are many files involved in the changes. Thank you. Additionally, do we need to add a global variable or environment variable to handle future IP changes?