Refactored app_config unit tests
This commit is contained in:
parent
82c2dd5e1e
commit
d733d8ff91
@ -383,7 +383,17 @@ static void common_tests(app_config &config, provider_type prov) {
|
||||
}},
|
||||
{JSON_S3_CONFIG, [](auto &&cfg) {}},
|
||||
{JSON_SIA_CONFIG, [](auto &&cfg) {}},
|
||||
{JSON_TASK_WAIT_MS, [](auto &&cfg) {}},
|
||||
{JSON_TASK_WAIT_MS,
|
||||
[](app_config &cfg) {
|
||||
test_getter_setter(
|
||||
cfg, &app_config::get_task_wait_ms, &app_config::set_task_wait_ms,
|
||||
std::uint16_t{min_task_wait_ms + 1U},
|
||||
std::uint16_t{min_task_wait_ms + 2U}, JSON_TASK_WAIT_MS,
|
||||
std::to_string(min_task_wait_ms + 3U));
|
||||
|
||||
cfg.set_task_wait_ms(min_task_wait_ms - 1U);
|
||||
EXPECT_EQ(min_task_wait_ms, cfg.get_task_wait_ms());
|
||||
}},
|
||||
};
|
||||
|
||||
switch (config.get_provider_type()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user