Skip to content

RootPeersDNS: garbage collect DNS results && test single source of truth #3643

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 3 commits into from
Mar 16, 2022

Conversation

bolt12
Copy link
Contributor

@bolt12 bolt12 commented Feb 28, 2022

This PR extends the existing test suite for RootPeersDNS by making the MockRoots more robust, and adding a test to check if localRootPeersProvider has a single source of truth. It also fixes #3650.

This was motivated by a bug found by @karknu and fixed in #3641 .

@bolt12 bolt12 requested review from coot and karknu as code owners February 28, 2022 12:56
@bolt12 bolt12 force-pushed the bolt12/rootpeerdns-test branch from d1f649a to 5f7ddd7 Compare March 1, 2022 12:20
@bolt12 bolt12 force-pushed the bolt12/rootpeerdns-test branch from 5f7ddd7 to ea6b4ce Compare March 1, 2022 12:53
@bolt12 bolt12 force-pushed the bolt12/rootpeerdns-test branch from ea6b4ce to d565c36 Compare March 10, 2022 09:57
@bolt12 bolt12 requested a review from coot March 10, 2022 09:58
@bolt12 bolt12 force-pushed the bolt12/rootpeerdns-test branch from d565c36 to 830987d Compare March 10, 2022 16:39
Copy link
Contributor

@coot coot left a comment

Choose a reason for hiding this comment

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

LGTM

@bolt12 bolt12 force-pushed the bolt12/rootpeerdns-test branch from 830987d to be29415 Compare March 16, 2022 11:17
@bolt12 bolt12 force-pushed the bolt12/rootpeerdns-test branch from be29415 to 33af6b3 Compare March 16, 2022 11:18
@bolt12 bolt12 changed the title RootPeersDNS test single source of truth RootPeersDNS: garbage collect DNS results && test single source of truth Mar 16, 2022
@bolt12 bolt12 requested a review from coot March 16, 2022 11:20
@bolt12
Copy link
Contributor Author

bolt12 commented Mar 16, 2022

bors merge

iohk-bors bot added a commit that referenced this pull request Mar 16, 2022
3643: RootPeersDNS: garbage collect DNS results && test single source of truth r=bolt12 a=bolt12

This PR extends the existing test suite for RootPeersDNS by making the MockRoots more robust, and adding a test to check if localRootPeersProvider has a single source of truth. It also fixes #3650.

This was motivated by a bug found by `@karknu` and fixed in #3641 .

Co-authored-by: Armando Santos <[email protected]>
@coot
Copy link
Contributor

coot commented Mar 16, 2022

bors cancel

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Mar 16, 2022

Canceled.

@bolt12 bolt12 force-pushed the bolt12/rootpeerdns-test branch from 33af6b3 to 9ff0c2f Compare March 16, 2022 12:30
@bolt12
Copy link
Contributor Author

bolt12 commented Mar 16, 2022

bors merge

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Mar 16, 2022

Build succeeded:

@iohk-bors iohk-bors bot merged commit 40f3beb into master Mar 16, 2022
@iohk-bors iohk-bors bot deleted the bolt12/rootpeerdns-test branch March 16, 2022 13:14
coot pushed a commit that referenced this pull request May 16, 2022
3643: RootPeersDNS: garbage collect DNS results && test single source of truth r=bolt12 a=bolt12

This PR extends the existing test suite for RootPeersDNS by making the MockRoots more robust, and adding a test to check if localRootPeersProvider has a single source of truth. It also fixes #3650.

This was motivated by a bug found by `@karknu` and fixed in #3641 .

Co-authored-by: Armando Santos <[email protected]>
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.

DNS entries are not garbage collected
2 participants