Skip to content

Commit

Permalink
Permit B as a bytes unit in compaction_test
Browse files Browse the repository at this point in the history
patch by Branimir Lambov; reviewed by Brandon Williams for CASSANDRA-18397
  • Loading branch information
blambov committed Jul 19, 2023
1 parent 1da18ef commit 6bffd00
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions compaction_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,11 @@ def test_compaction_throughput(self):
"MB": 1,
"MiB": 1,
"KiB": 1. / 1024,
"GiB": 1024
"GiB": 1024,
"B": 1. / (1024 * 1024),
}

units = ['MB'] if cluster.version() < LooseVersion('3.6') else ['KiB', 'MiB', 'GiB']
units = ['MB'] if cluster.version() < LooseVersion('3.6') else ['B', 'KiB', 'MiB', 'GiB']
assert found_units in units

logger.debug(avgthroughput)
Expand Down

0 comments on commit 6bffd00

Please sign in to comment.