mirror of https://github.com/apache/lucene.git
tmp files for tests should be temporary ... and not created in the current working directory
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@668771 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e8376f4d8d
commit
200f1ddd7c
|
@ -36,8 +36,6 @@ public class CacheHeaderTest extends CacheHeaderTestBase {
|
|||
return "solrconfig.xml";
|
||||
}
|
||||
|
||||
protected static final String FILENAME = "cacheheadertest.csv";
|
||||
|
||||
protected static final String CHARSET = "UTF-8";
|
||||
|
||||
protected static final String CONTENTS = "id\n100\n101\n102";
|
||||
|
@ -234,7 +232,8 @@ public class CacheHeaderTest extends CacheHeaderTestBase {
|
|||
|
||||
protected File makeFile(String contents, String charset) {
|
||||
try {
|
||||
File f=new File(FILENAME);
|
||||
File f = File.createTempFile(getClass().getName(),"csv");
|
||||
f.deleteOnExit();
|
||||
Writer out = new OutputStreamWriter(new FileOutputStream(f),
|
||||
charset);
|
||||
out.write(contents);
|
||||
|
|
Loading…
Reference in New Issue