Skip to content

Commit

Permalink
Fixing CodecTests (#8591)
Browse files Browse the repository at this point in the history
Signed-off-by: Sarthak Aggarwal <[email protected]>
  • Loading branch information
sarthakaggarwal97 authored Jul 10, 2023
1 parent 4f5e40b commit 90bd4dd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ public void testExceptionIndexSettingsNull() {
}

public void testCodecServiceWithNullMapperService() {
CodecService codecService = new CodecService(null, null, LogManager.getLogger("test"));
Settings nodeSettings = Settings.builder().put(Environment.PATH_HOME_SETTING.getKey(), createTempDir()).build();
IndexSettings indexSettings = IndexSettingsModule.newIndexSettings("_na", nodeSettings);
CodecService codecService = new CodecService(null, indexSettings, LogManager.getLogger("test"));
assert codecService.codec("default") instanceof Lucene95Codec;
assert codecService.codec("best_compression") instanceof Lucene95Codec;
Lucene95CustomStoredFieldsFormat zstdStoredFieldsFormat = (Lucene95CustomStoredFieldsFormat) codecService.codec("zstd")
Expand Down

0 comments on commit 90bd4dd

Please sign in to comment.