Skip to content

Commit

Permalink
Fix UT
Browse files Browse the repository at this point in the history
Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
  • Loading branch information
lolyu committed Jul 3, 2024
1 parent 34ac1e0 commit a74a321
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/MuxPortTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ void MuxPortTest::stopIoServiceThreaded()
{
mWork.reset();
mIoService.stop();
mThreadGroup.join_all();
}

void MuxPortTest::SetUp()
Expand Down Expand Up @@ -215,7 +216,6 @@ TEST_F(MuxPortTest, TestPeerLinkStateNotificationHandler)
mFakeMuxPort.handlePeerLinkState("down");
called += 2;

uint32_t check = 0;
while (fakeLinkManagerStateMachinePtr->mPeerLinkStateNotificationHandlerCalled < called)
{
usleep(1000);
Expand All @@ -236,7 +236,6 @@ TEST_F(MuxPortTest, TestPeerMuxStateNotificationHandler)
mFakeMuxPort.handlePeerMuxState("standby");
called += 2;

uint32_t check = 0;
while (fakeLinkManagerStateMachinePtr->mPeerMuxStateNotificationHandlerCalled < called)
{
usleep(1000);
Expand All @@ -257,7 +256,6 @@ TEST_F(MuxPortTest, TestMuxConfigNotificationHandler)
mFakeMuxPort.handleMuxConfig("standby");
called += 2;

uint32_t check = 0;
while (fakeLinkManagerStateMachinePtr->mMuxConfigNotificationHandlerCalled < called)
{
usleep(1000);
Expand All @@ -279,7 +277,6 @@ TEST_F(MuxPortTest, TestDefaultRouteStateNotificationHandler)
mFakeMuxPort.handleDefaultRouteState("ok");
called += 2;

uint32_t check = 0;
while (fakeLinkManagerStateMachinePtr->mDefaultRouteStateNotificationHandlerCalled < called)
{
usleep(1000);
Expand Down

0 comments on commit a74a321

Please sign in to comment.