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

go test github.com/travisjeffery/jocko/server deletes $TMPDIR #24

Closed
davecheney opened this issue Feb 10, 2017 · 2 comments
Closed

go test github.com/travisjeffery/jocko/server deletes $TMPDIR #24

davecheney opened this issue Feb 10, 2017 · 2 comments

Comments

@dgryski
Copy link

dgryski commented Feb 10, 2017

You probably want https://golang.org/pkg/io/ioutil/#TempDir instead.

@travisjeffery
Copy link
Owner

Woh, thanks. Yeah I use ioutil.TempDir to create the dir that's actually used (dataDir). Just a stupid couple of lines there. At least I can tell people I've been shamed by Dave Cheney in an issue in the Go repo.

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

No branches or pull requests

3 participants