From 0a5e59675878bff9277bd9c60667de3dd7208630 Mon Sep 17 00:00:00 2001 From: Xiaoxi Wang Date: Tue, 25 Oct 2022 16:43:00 -0700 Subject: [PATCH] fix network failure check in unit test --- fdbserver/MockGlobalState.actor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/fdbserver/MockGlobalState.actor.cpp b/fdbserver/MockGlobalState.actor.cpp index 84b28e6d18..8de995fd2b 100644 --- a/fdbserver/MockGlobalState.actor.cpp +++ b/fdbserver/MockGlobalState.actor.cpp @@ -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); });