fix network failure check in unit test

This commit is contained in:
Xiaoxi Wang 2022-10-25 16:43:00 -07:00
parent 36d9de9072
commit 0a5e596758
1 changed files with 1 additions and 0 deletions

View File

@ -607,6 +607,7 @@ TEST_CASE("/MockGlobalState/MockStorageServer/WaitStorageMetricsRequest") {
ActorCollection* ptr = &actors; // get around ACTOR syntax restriction
std::for_each(mgs->allServers.begin(), mgs->allServers.end(), [ptr](auto& server) {
ptr->add(server.second.run());
IFailureMonitor::failureMonitor().setStatus(server.second.ssi.address(), FailureStatus(false));
server.second.metrics.byteSample.sample.insert("something"_sr, 500000);
});