fix tests (#8286)
This commit is contained in:
parent
41993c41fd
commit
37b93a6232
|
@ -248,6 +248,10 @@ struct ConfigureDatabaseWorkload : TestWorkload {
|
|||
|
||||
std::string description() const override { return "DestroyDatabaseWorkload"; }
|
||||
|
||||
void disableFailureInjectionWorkloads(std::set<std::string>& out) const override {
|
||||
out.insert("MachineAttritionWorkload");
|
||||
}
|
||||
|
||||
Future<Void> setup(Database const& cx) override { return _setup(cx, this); }
|
||||
|
||||
Future<Void> start(Database const& cx) override { return _start(this, cx); }
|
||||
|
|
|
@ -40,6 +40,9 @@ struct KillRegionWorkload : TestWorkload {
|
|||
}
|
||||
|
||||
std::string description() const override { return "KillRegionWorkload"; }
|
||||
|
||||
void disableFailureInjectionWorkloads(std::set<std::string>& out) const override { out.insert("all"); }
|
||||
|
||||
Future<Void> setup(Database const& cx) override {
|
||||
if (enabled) {
|
||||
return _setup(this, cx);
|
||||
|
|
|
@ -81,6 +81,10 @@ struct MetaclusterManagementWorkload : TestWorkload {
|
|||
|
||||
std::string description() const override { return "MetaclusterManagement"; }
|
||||
|
||||
void disableFailureInjectionWorkloads(std::set<std::string>& out) const override {
|
||||
out.insert("MachineAttritionWorkload");
|
||||
}
|
||||
|
||||
Future<Void> setup(Database const& cx) override {
|
||||
if (clientId == 0) {
|
||||
if (g_network->isSimulated() && BUGGIFY) {
|
||||
|
|
|
@ -223,8 +223,8 @@ struct TenantEntryCacheWorkload : TestWorkload {
|
|||
CLIENT_KNOBS->TENANT_ENTRY_CACHE_LIST_REFRESH_INTERVAL * 10; // initial delay + multiple refresh runs
|
||||
wait(delay(refreshWait));
|
||||
|
||||
// InitRefresh + multiple timer based invocations
|
||||
ASSERT_GE(cache->numCacheRefreshes(), 3);
|
||||
// InitRefresh + multiple timer based invocations (at least 2 invocations of cache->refresh())
|
||||
ASSERT_GE(cache->numCacheRefreshes(), 2);
|
||||
|
||||
TraceEvent("TestCacheRefreshEnd");
|
||||
return Void();
|
||||
|
|
Loading…
Reference in New Issue