mirror of https://github.com/apache/lucene.git
fix leftover simplefs assumptions in test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1629657 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e8afe4f5c5
commit
19a2383920
|
@ -435,29 +435,8 @@ public abstract class BaseCompoundFormatTestCase extends BaseIndexFileFormatTest
|
|||
expected.seek(0);
|
||||
assertSameStreams("basic clone two", expected, two);
|
||||
|
||||
// Now close the first stream
|
||||
one.close();
|
||||
|
||||
// The following should really fail since we couldn't expect to
|
||||
// access a file once close has been called on it (regardless of
|
||||
// buffering and/or clone magic)
|
||||
expected.seek(0);
|
||||
two.seek(0);
|
||||
assertSameStreams("basic clone two/2", expected, two);
|
||||
|
||||
// Now close the compound reader
|
||||
cr.close();
|
||||
|
||||
// The following may also fail since the compound stream is closed
|
||||
expected.seek(0);
|
||||
two.seek(0);
|
||||
//assertSameStreams("basic clone two/3", expected, two);
|
||||
|
||||
// Now close the second clone
|
||||
two.close();
|
||||
expected.seek(0);
|
||||
//assertSameStreams("basic clone two/4", expected, two);
|
||||
|
||||
expected.close();
|
||||
dir.close();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue