disable new test on windows

This commit is contained in:
Michael McCandless 2015-08-28 05:06:35 -04:00 committed by mikemccand
parent fb703845dd
commit 07b5d22d91
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@ import com.carrotsearch.randomizedtesting.annotations.Repeat;
import org.apache.lucene.mockfile.FilterFileSystem; import org.apache.lucene.mockfile.FilterFileSystem;
import org.apache.lucene.mockfile.FilterFileSystemProvider; import org.apache.lucene.mockfile.FilterFileSystemProvider;
import org.apache.lucene.mockfile.FilterPath; import org.apache.lucene.mockfile.FilterPath;
import org.apache.lucene.util.Constants;
import org.elasticsearch.cluster.metadata.IndexMetaData; import org.elasticsearch.cluster.metadata.IndexMetaData;
import org.elasticsearch.common.SuppressForbidden; import org.elasticsearch.common.SuppressForbidden;
import org.elasticsearch.common.io.PathUtils; import org.elasticsearch.common.io.PathUtils;
@ -182,6 +183,7 @@ public class NewPathForShardTest extends ESTestCase {
} }
public void testSelectNewPathForShard() throws Exception { public void testSelectNewPathForShard() throws Exception {
assumeFalse("Consistenty fails on windows ('could not remove the following files')", Constants.WINDOWS);
Path path = PathUtils.get(createTempDir().toString()); Path path = PathUtils.get(createTempDir().toString());
// Use 2 data paths: // Use 2 data paths: