Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
node: stress_object: ignore commas in numbers
Some resharding_test dtest, e.g. `test_resharding_counter` fails locally for me: ``` def _run_stress(self, op_cnt, stress_cmd): res = self.node.stress_object(stress_cmd) if not isinstance(res, dict): raise Exception('Error running cassandra-stress: {}'.format(res)) assert res['total errors'] == 0 > assert res['total partitions'] >= op_cnt E assert 10.0 >= 10000 ``` When printing the cassandra-stress stdout I saw that it uses a comma as a 1000s separator: ``` Total partitions : 10,000 [COUNTER_READ: 10,000] ``` This is probably related to the LOCALE on my machine. This change removes any commas from the value in _set_stress_val before converting it to `float` using `locale.atof`. Signed-off-by: Benny Halevy <[email protected]>
- Loading branch information