Skip to content

Commit

Permalink
fix(fvt): reduce minimum compression-ratio metric
Browse files Browse the repository at this point in the history
Batched test compression-ratio can sometimes be as low as 3

Signed-off-by: Dominic Evans <dominic.evans@uk.ibm.com>
  • Loading branch information
dnwe committed Aug 21, 2023
1 parent d44ebdc commit 827ec18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functional_producer_test.go
Expand Up @@ -1021,7 +1021,7 @@ func validateProducerMetrics(t *testing.T, client Client) {
// We record compression ratios of 1.00 (100 with a histogram) for every TestBatchSize record
if client.Config().Version.IsAtLeast(V0_11_0_0) {
// records will be grouped in batchSet rather than msgSet
metricValidators.registerForGlobalAndTopic("test_1", minCountHistogramValidator("compression-ratio", 4))
metricValidators.registerForGlobalAndTopic("test_1", minCountHistogramValidator("compression-ratio", 3))
} else {
metricValidators.registerForGlobalAndTopic("test_1", countHistogramValidator("compression-ratio", TestBatchSize))
}
Expand Down

0 comments on commit 827ec18

Please sign in to comment.