Skip to content
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

addrmgr: Test removal of corrupt peers file. #1129

Merged
merged 1 commit into from
Mar 6, 2018

Conversation

markusrichter
Copy link
Contributor

Add unit test to ensure the removal of corrupt peers files.

Also fix some typos.

Increases test coverage from 78.4% to 79.5%.

@@ -498,3 +498,26 @@ func TestNetAddressKey(t *testing.T) {
}

}

func TestCorruptPeersFile(t *testing.T) {
dir, err := ioutil.TempDir("", "testaddressbyip")
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't the prefix be changed here to be unique for the test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, changed accordingly!

Add unit test to ensure the removal of corrupt peers files.

Also fix some typos.
@davecgh davecgh merged commit c49a9bd into decred:master Mar 6, 2018
JFixby pushed a commit to JFixby/dcrd that referenced this pull request Oct 21, 2018
fix NewImportAddressCmd rescan wrong parameters
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.

2 participants