Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Unit test temp dir now properly cleaned up #58

Merged
merged 2 commits into from
Feb 11, 2014

Conversation

Wavesonics
Copy link
Contributor

Uses a test rule to ensure the temp directory is cleaned up as soon as
the test is completed. This prevents potential problems with re-running
the test and having an old directory present.

Uses a test rule to ensure the temp directory is cleaned up as soon as
the test is completed. This prevents potential problems with re-running
the test and having an old directory present.
javaTmpDir = System.getProperty("java.io.tmpdir");
cacheDir = new File(javaTmpDir, "DiskLruCacheTest");
cacheDir.mkdir();
cacheDir = tempDir.newFolder( "DiskLruCacheTest" );
Copy link
Owner

Choose a reason for hiding this comment

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

Remove spaces around the string.

JakeWharton added a commit that referenced this pull request Feb 11, 2014
Unit test temp dir now properly cleaned up
@JakeWharton JakeWharton merged commit 6226c49 into JakeWharton:master Feb 11, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants