don't createNewFile in assertion, running without -ea will ruin side effect

This commit is contained in:
Maxim.Mossienko
2013-10-23 18:04:53 +02:00
parent aa281e4f62
commit 824868b1f8
@@ -145,7 +145,8 @@ public class LocalFileSystemTest extends PlatformLangTestCase {
final File dirFile = createTempDirectory();
final String name = "te\u00dft123123123.txt";
final File childFile = new File(dirFile, name);
assert childFile.createNewFile() || childFile.exists() : childFile;
boolean created = childFile.createNewFile();
assert created || childFile.exists() : childFile;
final VirtualFile dir = LocalFileSystem.getInstance().refreshAndFindFileByIoFile(dirFile);
assertNotNull(dir);