Merge pull request #3766 from ajbeamon/fuzz-api-test-fix-options

Don't set SPECIAL_KEY_SPACE_ENABLE_WRITES randomly in Fuzz API test
This commit is contained in:
Andrew Noyes 2020-09-10 09:02:02 -07:00 committed by GitHub
commit 051df02b4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -1181,8 +1181,14 @@ struct FuzzApiCorrectnessWorkload : TestWorkload {
}
op = deterministicRandom()->randomInt(minval, maxval+1);
}
if(op == FDBTransactionOptions::ACCESS_SYSTEM_KEYS || op == FDBTransactionOptions::READ_SYSTEM_KEYS) //do not test access system keys since the option is actually used by the workload
//do not test the following options since they are actually used by the workload
if(op == FDBTransactionOptions::ACCESS_SYSTEM_KEYS ||
op == FDBTransactionOptions::READ_SYSTEM_KEYS ||
op == FDBTransactionOptions::SPECIAL_KEY_SPACE_ENABLE_WRITES)
{
op = -1;
}
double orv = deterministicRandom()->random01();
if (orv >= 0.25) {