Fix exception assertions in MetaDataStateFormatTests.testLoadState (again)

This commit is contained in:
Boaz Leskes 2016-02-29 12:11:10 +01:00
parent e5e21480d4
commit c5a290550f
1 changed files with 1 additions and 2 deletions

View File

@ -19,7 +19,6 @@
package org.elasticsearch.gateway;
import org.apache.lucene.codecs.CodecUtil;
import org.apache.lucene.index.CorruptIndexException;
import org.apache.lucene.store.ChecksumIndexInput;
import org.apache.lucene.store.Directory;
import org.apache.lucene.store.IOContext;
@ -378,7 +377,7 @@ public class MetaDataStateFormatTests extends ESTestCase {
format.loadLatestState(logger, dirList.toArray(new Path[0]));
fail("latest version can not be read");
} catch (ElasticsearchException ex) {
assertThat(ExceptionsHelper.unwrap(ex, CorruptIndexException.class), notNullValue());
assertThat(ExceptionsHelper.unwrap(ex, CorruptStateException.class), notNullValue());
}
}