mirror of https://github.com/apache/lucene.git
fix false positive test failure
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@889911 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
53ce286a25
commit
e98e9dd23c
|
@ -42,7 +42,7 @@
|
||||||
<property name="Name" value="Lucene"/>
|
<property name="Name" value="Lucene"/>
|
||||||
<property name="dev.version" value="3.1-dev"/>
|
<property name="dev.version" value="3.1-dev"/>
|
||||||
<property name="version" value="${dev.version}"/>
|
<property name="version" value="${dev.version}"/>
|
||||||
<property name="compatibility.tag" value="lucene_3_0_back_compat_tests_20091208"/>
|
<property name="compatibility.tag" value="lucene_3_0_back_compat_tests_20091212"/>
|
||||||
<property name="spec.version" value="${version}"/>
|
<property name="spec.version" value="${version}"/>
|
||||||
<property name="year" value="2000-${current.year}"/>
|
<property name="year" value="2000-${current.year}"/>
|
||||||
<property name="final.name" value="lucene-${name}-${version}"/>
|
<property name="final.name" value="lucene-${name}-${version}"/>
|
||||||
|
|
|
@ -2333,6 +2333,12 @@ public class TestIndexWriter extends LuceneTestCase {
|
||||||
fail("did not hit disk full");
|
fail("did not hit disk full");
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Make sure once disk space is avail again, we can
|
||||||
|
// cleanly close:
|
||||||
|
dir.setMaxSizeInBytes(0);
|
||||||
|
writer.close(false);
|
||||||
|
dir.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
// LUCENE-1130: make sure immediate disk full on creating
|
// LUCENE-1130: make sure immediate disk full on creating
|
||||||
|
@ -2368,11 +2374,10 @@ public class TestIndexWriter extends LuceneTestCase {
|
||||||
assertTrue("hit unexpected Throwable", threads[i].error == null);
|
assertTrue("hit unexpected Throwable", threads[i].error == null);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
// Make sure once disk space is avail again, we can
|
||||||
writer.close(false);
|
// cleanly close:
|
||||||
} catch (IOException ioe) {
|
dir.setMaxSizeInBytes(0);
|
||||||
}
|
writer.close(false);
|
||||||
|
|
||||||
dir.close();
|
dir.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue