-
Type: Technical Debt
-
Resolution: Duplicate
-
Priority: Trivial - P5
-
None
-
Affects Version/s: None
-
Component/s: None
-
2
-
StorEng - Defined Pipeline
Summary
Currently, we retrieve the operation rate of a component in the load function. The load function is dedicated to doing any preliminary work specific to the component before the test starts. Instead, we could do this kind of configuration parsing in the constructor.
Motivation
- Is this issue urgent?
No
Acceptance Criteria (Definition of Done)
The operation rate of each component is retrieved in the constructor unless another better idea is found.
diff --git a/test/cppsuite/src/component/component.cpp b/test/cppsuite/src/component/component.cpp index 118727d16..7d2133cd1 100644 --- a/test/cppsuite/src/component/component.cpp +++ b/test/cppsuite/src/component/component.cpp @@ -36,6 +36,7 @@ namespace test_harness { component::component(const std::string &name, configuration *config) : _config(config), _name(name) { + _sleep_time_ms = _config->get_throttle_ms(); } component::~component() @@ -53,8 +54,6 @@ component::load() if (!_enabled) return; - - _sleep_time_ms = _config->get_throttle_ms(); }
- duplicates
-
WT-11769 Small cppsuite code quality improvements
- Closed