Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jpountz committed Feb 6, 2024
1 parent ae22787 commit 8c04bb3
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -52,15 +52,15 @@ public void testResolveDefaultCodecs() throws Exception {
public void testDefault() throws Exception {
Codec codec = createCodecService().codec("default");
assertEquals(
"Zstd813StoredFieldsFormat(compressionMode=ZSTD(level=0), chunkSize=16384, maxDocsPerChunk=128, blockShift=10)",
"Zstd813StoredFieldsFormat(compressionMode=ZSTD(level=0), chunkSize=14336, maxDocsPerChunk=128, blockShift=10)",
codec.storedFieldsFormat().toString()
);
}

public void testBestCompression() throws Exception {
Codec codec = createCodecService().codec("best_compression");
assertEquals(
"Zstd813StoredFieldsFormat(compressionMode=ZSTD(level=9), chunkSize=262144, maxDocsPerChunk=2048, blockShift=10)",
"Zstd813StoredFieldsFormat(compressionMode=ZSTD(level=3), chunkSize=245760, maxDocsPerChunk=2048, blockShift=10)",
codec.storedFieldsFormat().toString()
);
}
Expand Down

0 comments on commit 8c04bb3

Please sign in to comment.