mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-14 18:02:31 +08:00
Fix a small test bug and remove some delays that don't seem to be needed anymore
This commit is contained in:
parent
a2e66c9695
commit
48f149a62e
@ -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) {
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user