Skip to content

Commit

Permalink
Relax check in logdatastore unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
toregge committed Sep 10, 2024
1 parent b55c3be commit 54b1f68
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,15 @@ void verifyGrowing(const LogDataStore::Config & config, uint32_t minFiles, uint3
EXPECT_GE(maxFiles, datastore.getAllActiveFiles().size());
}
}

TEST(LogDataStoreTest, testGrowingChunkedBySize)
{
LogDataStore::Config config;
config.setMaxFileSize(100000).setMaxBucketSpread(3.0).setMinFileSizeFactor(0.2)
.compactCompression({CompressionConfig::LZ4})
.setFileConfig({{CompressionConfig::ZSTD, 9, 60}, 1000});
verifyGrowing(config, 40, 120);
// Number of generated files depends on timing
verifyGrowing(config, 40, 265);
}

TEST(LogDataStoreTest, testGrowingChunkedByNumLids)
Expand Down

0 comments on commit 54b1f68

Please sign in to comment.