From 19a2383920e291076738dfbb2e0d71983f48b9b5 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Mon, 6 Oct 2014 13:44:46 +0000 Subject: [PATCH] fix leftover simplefs assumptions in test git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1629657 13f79535-47bb-0310-9956-ffa450edef68 --- .../index/BaseCompoundFormatTestCase.java | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/lucene/test-framework/src/java/org/apache/lucene/index/BaseCompoundFormatTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/index/BaseCompoundFormatTestCase.java index b8d0d010976..53d1bce3b03 100644 --- a/lucene/test-framework/src/java/org/apache/lucene/index/BaseCompoundFormatTestCase.java +++ b/lucene/test-framework/src/java/org/apache/lucene/index/BaseCompoundFormatTestCase.java @@ -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(); }