summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/test/cppsuite/test_harness/test.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/test/cppsuite/test_harness/test.h')
-rw-r--r--src/third_party/wiredtiger/test/cppsuite/test_harness/test.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/third_party/wiredtiger/test/cppsuite/test_harness/test.h b/src/third_party/wiredtiger/test/cppsuite/test_harness/test.h
index d6768ce7e48..4bcc4e92689 100644
--- a/src/third_party/wiredtiger/test/cppsuite/test_harness/test.h
+++ b/src/third_party/wiredtiger/test/cppsuite/test_harness/test.h
@@ -61,7 +61,8 @@ class test {
_timestamp_manager = new timestamp_manager(_configuration);
_workload_tracking = new workload_tracking(_configuration, OPERATION_TRACKING_TABLE_CONFIG,
TABLE_OPERATION_TRACKING, SCHEMA_TRACKING_TABLE_CONFIG, TABLE_SCHEMA_TRACKING);
- _workload_generator = new workload_generator(_configuration, _workload_tracking);
+ _workload_generator =
+ new workload_generator(_configuration, _timestamp_manager, _workload_tracking);
_thread_manager = new thread_manager();
/*
* Ordering is not important here, any dependencies between components should be resolved
@@ -95,8 +96,7 @@ class test {
void
run()
{
- int64_t cache_size_mb = 100;
- int64_t duration_seconds = 0;
+ int64_t cache_size_mb = 100, duration_seconds = 0;
bool enable_tracking = false, is_success = true;
/* Build the database creation config string. */
@@ -118,6 +118,7 @@ class test {
/* Sleep duration seconds. */
testutil_check(_configuration->get_int(DURATION_SECONDS, duration_seconds));
+ testutil_assert(duration_seconds >= 0);
std::this_thread::sleep_for(std::chrono::seconds(duration_seconds));
/* End the test. */
@@ -175,8 +176,8 @@ class test {
std::vector<component *> _components;
configuration *_configuration;
runtime_monitor *_runtime_monitor;
- timestamp_manager *_timestamp_manager;
thread_manager *_thread_manager;
+ timestamp_manager *_timestamp_manager;
workload_generator *_workload_generator;
workload_tracking *_workload_tracking;
};