lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sim...@apache.org
Subject svn commit: r1681851 - /lucene/dev/trunk/lucene/test-framework/src/test/org/apache/lucene/mockfile/TestWindowsFS.java
Date Tue, 26 May 2015 20:36:02 GMT
Author: simonw
Date: Tue May 26 20:36:01 2015
New Revision: 1681851

URL: http://svn.apache.org/r1681851
Log:
LUCENE-6499: Fix typo and make vars final

Modified:
    lucene/dev/trunk/lucene/test-framework/src/test/org/apache/lucene/mockfile/TestWindowsFS.java

Modified: lucene/dev/trunk/lucene/test-framework/src/test/org/apache/lucene/mockfile/TestWindowsFS.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/test-framework/src/test/org/apache/lucene/mockfile/TestWindowsFS.java?rev=1681851&r1=1681850&r2=1681851&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/test-framework/src/test/org/apache/lucene/mockfile/TestWindowsFS.java
(original)
+++ lucene/dev/trunk/lucene/test-framework/src/test/org/apache/lucene/mockfile/TestWindowsFS.java
Tue May 26 20:36:01 2015
@@ -107,8 +107,8 @@ public class TestWindowsFS extends MockF
   }
 
   public void testOpenDeleteConcurrently() throws IOException, Exception {
-    Path dir = wrap(createTempDir());
-    Path file = dir.resolve("thefile");
+    final Path dir = wrap(createTempDir());
+    final Path file = dir.resolve("thefile");
     final CyclicBarrier barrier = new CyclicBarrier(2);
     final AtomicBoolean stopped = new AtomicBoolean(false);
     Thread t = new Thread() {
@@ -147,10 +147,10 @@ public class TestWindowsFS extends MockF
           stream.write(0);
           // just create
         } catch (FileNotFoundException | NoSuchFileException ex) {
-          assertEquals("File handle leaked - file is closed but still regeistered", 0, ((WindowsFS)
dir.getFileSystem().provider()).openFiles.size());
+          assertEquals("File handle leaked - file is closed but still registered", 0, ((WindowsFS)
dir.getFileSystem().provider()).openFiles.size());
           assertFalse("caught FNF on close", opened);
         }
-        assertEquals("File handle leaked - file is closed but still regeistered", 0, ((WindowsFS)
dir.getFileSystem().provider()).openFiles.size());
+        assertEquals("File handle leaked - file is closed but still registered", 0, ((WindowsFS)
dir.getFileSystem().provider()).openFiles.size());
         Files.deleteIfExists(file);
       }
     } finally {



Mime
View raw message