Skip to content

Commit 70775fd

Browse files
Prasoon Patelmeta-codesync[bot]
authored andcommitted
Fix for VoQ scale test AgentVoqSwitchScaleTest.remoteAndLocalLoadBalance
Summary: VoQ scale test remoteAndLocalLoadBalance, is passing on Mono but flakey for multi_switch. Reviewed By: jasmeetbagga Differential Revision: D91333396 fbshipit-source-id: b3030d74dd92df332cd346aab49b0ccb85a49826
1 parent c141ecc commit 70775fd

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

fboss/agent/test/agent_hw_tests/AgentVoqSwitchScaleTests.cpp

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,16 @@ TEST_F(AgentVoqSwitchScaleTest, remoteAndLocalLoadBalance) {
171171
getSw()->clearPortStats(ports);
172172
},
173173
[&]() {
174-
WITH_RETRIES(EXPECT_EVENTUALLY_TRUE(
175-
utility::isLoadBalanced(
176-
sysPortDescs, {}, getSysPortStatsFn, kMaxDeviation, false)));
174+
WITH_RETRIES_N_TIMED(
175+
50,
176+
std::chrono::milliseconds(2000),
177+
EXPECT_EVENTUALLY_TRUE(
178+
utility::isLoadBalanced(
179+
sysPortDescs,
180+
{},
181+
getSysPortStatsFn,
182+
kMaxDeviation,
183+
false)));
177184
return true;
178185
});
179186
};

0 commit comments

Comments
 (0)