This is an automated email from the ASF dual-hosted git repository.
blambov pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-dtest.git
The following commit(s) were added to refs/heads/trunk by this push:
new 6bffd00e Permit B as a bytes unit in compaction_test
6bffd00e is described below
commit 6bffd00ea003677a590b8d6c8dee39a548a20cb9
Author: Branimir Lambov <[email protected]>
AuthorDate: Tue Jul 18 14:34:59 2023 +0300
Permit B as a bytes unit in compaction_test
patch by Branimir Lambov; reviewed by Brandon Williams for CASSANDRA-18397
---
compaction_test.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/compaction_test.py b/compaction_test.py
index f7b27078..c5d90560 100644
--- a/compaction_test.py
+++ b/compaction_test.py
@@ -286,10 +286,11 @@ class TestCompaction(Tester):
"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)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]