ApiTester: Apply client knob settings

This commit is contained in:
Vaidas Gasiunas 2022-02-28 20:00:27 +01:00
parent 99f210e198
commit e89eba3b15
1 changed files with 5 additions and 0 deletions

View File

@ -250,6 +250,11 @@ void applyNetworkOptions(TesterOptions& options) {
if (options.buggify) {
fdb_check(FdbApi::setOption(FDBNetworkOption::FDB_NET_OPTION_CLIENT_BUGGIFY_ENABLE));
}
for (auto knob : options.knobs) {
FdbApi::setOption(FDBNetworkOption::FDB_NET_OPTION_KNOB,
format("%s=%s", knob.first.c_str(), knob.second.c_str()));
}
}
void runApiCorrectness(TesterOptions& options) {