mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-14 20:42:21 +00:00
delete tmporary file created during a test
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15456 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
c10286e125
commit
a41ed6e4a0
1 file changed
+2
-1
@@ -77,9 +77,10 @@ public class FilePathTest extends TestCase {
|
||||
}
|
||||
|
||||
public void testCopyTo() throws Exception {
|
||||
File tmp = File.createTempFile("tmp","");
|
||||
File tmp = File.createTempFile("testCopyTo","");
|
||||
FilePath f = new FilePath(french,tmp.getPath());
|
||||
f.copyTo(new NullStream());
|
||||
tmp.delete();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user