Skip to content

Commit

Permalink
Fix TestInetEndPoint failure on GCP cloudbuild (#23584)
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca authored and pull[bot] committed Nov 23, 2023
1 parent da20e33 commit 1707509
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/inet/tests/TestInetEndPoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,13 @@ static void TestInetEndPointInternal(nlTestSuite * inSuite, void * inContext)
NL_TEST_ASSERT(inSuite, SYSTEM_STATS_TEST_IN_USE(System::Stats::kInetLayer_NumUDPEps, 1));

err = InterfaceId::Null().GetLinkLocalAddr(&addr);

// We should skip the following checks if the interface does not have the Link local address
if (err == INET_ERROR_ADDRESS_NOT_FOUND)
{
return;
}

NL_TEST_ASSERT(inSuite, err == CHIP_NO_ERROR);
intId = InterfaceId::FromIPAddress(addr);
NL_TEST_ASSERT(inSuite, intId.IsPresent());
Expand Down

0 comments on commit 1707509

Please sign in to comment.