Fix a small test bug and remove some delays that don't seem to be needed anymore

This commit is contained in:
A.J. Beamon 2022-08-04 05:57:07 -07:00
parent a2e66c9695
commit 48f149a62e
2 changed files with 1 additions and 7 deletions

View File

@ -169,9 +169,6 @@ struct MetaclusterManagementWorkload : TestWorkload {
wait(success(runTransaction(dataDb->db.getReference(),
[](Reference<ReadYourWritesTransaction> tr) { return tr->getReadVersion(); })));
// TODO: find a better way to ensure fully recovered
wait(delay(10));
return Void();
} catch (Error& e) {
if (e.code() == error_code_cluster_already_exists) {
@ -225,9 +222,6 @@ struct MetaclusterManagementWorkload : TestWorkload {
wait(success(runTransaction(dataDb->db.getReference(),
[](Reference<ReadYourWritesTransaction> tr) { return tr->getReadVersion(); })));
// TODO: find a better way to ensure fully recovered
wait(delay(10));
return Void();
} catch (Error& e) {
if (e.code() == error_code_cluster_not_found) {

View File

@ -697,7 +697,7 @@ struct TenantManagementWorkload : TestWorkload {
if (result.present()) {
if (anyExists) {
if (self->oldestDeletionVersion == 0) {
if (self->oldestDeletionVersion == 0 && !tenants.empty()) {
tr->reset();
Version afterVersion = wait(tr->getReadVersion());
self->oldestDeletionVersion = afterVersion;