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

fileutil: rework purge tests so they don't poll #5973

Merged
merged 1 commit into from
Jul 18, 2016

Conversation

heyitsanthony
Copy link
Contributor

Fixes #5966

return purgeFile(dirname, suffix, max, interval, stop, nil)
}

func purgeFile(dirname string, suffix string, max uint, interval time.Duration, stop <-chan struct{}, purgec chan<- string) <-chan error {
Copy link
Contributor

Choose a reason for hiding this comment

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

So purgec is only for testing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes

Copy link
Contributor

Choose a reason for hiding this comment

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

probably add a comments about the purgec thing?

@gyuho
Copy link
Contributor

gyuho commented Jul 18, 2016

lgtm. defer to @xiang90

@xiang90
Copy link
Contributor

xiang90 commented Jul 18, 2016

lgtm after documenting purgec chan.

@heyitsanthony
Copy link
Contributor Author

only failing on TestEmbed; merging

@heyitsanthony heyitsanthony merged commit 7fbc1e3 into etcd-io:master Jul 18, 2016
@heyitsanthony heyitsanthony deleted the purge-test branch July 18, 2016 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants