diff --git a/fboss/agent/test/utils/FabricTestUtils.cpp b/fboss/agent/test/utils/FabricTestUtils.cpp index f5dd55dfb20df..c8b7f9ed2fbe3 100644 --- a/fboss/agent/test/utils/FabricTestUtils.cpp +++ b/fboss/agent/test/utils/FabricTestUtils.cpp @@ -61,26 +61,6 @@ void checkFabricConnectivity(TestEnsembleIf* ensemble, SwitchID switchId) { }); } -void checkFabricConnectivityStats(TestEnsembleIf* ensemble, SwitchID switchId) { - WITH_RETRIES({ - ensemble->updateStats(); - auto reachability = ensemble->getFabricConnectivity(switchId); - int count = 0; - for (auto [_, endpoint] : reachability) { - if (!*endpoint.isAttached()) { - continue; - } - // all interfaces which have reachability info collected - count++; - } - // expected all of interfaces to jump on mismatched and missing - EXPECT_EVENTUALLY_EQ( - *(ensemble->getFabricReachabilityStats().mismatchCount()), count); - EXPECT_EVENTUALLY_EQ( - *(ensemble->getFabricReachabilityStats().missingCount()), count); - }); -} - void populatePortExpectedNeighbors( const std::vector& ports, cfg::SwitchConfig& cfg) { diff --git a/fboss/agent/test/utils/FabricTestUtils.h b/fboss/agent/test/utils/FabricTestUtils.h index 2253a613bd978..a07bf10067e55 100644 --- a/fboss/agent/test/utils/FabricTestUtils.h +++ b/fboss/agent/test/utils/FabricTestUtils.h @@ -16,7 +16,6 @@ namespace facebook::fboss::utility { void checkFabricConnectivity(TestEnsembleIf* ensemble, SwitchID switchId); -void checkFabricConnectivityStats(TestEnsembleIf* ensemble, SwitchID switchId); void populatePortExpectedNeighbors( const std::vector& ports, cfg::SwitchConfig& cfg);