Skip to content

Commit

Permalink
Fix TestInetEndPoint failure on GCP cloudbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca committed Nov 11, 2022
1 parent 1a8cf55 commit 7f69b42
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 7f69b42

Please sign in to comment.