Skip to content

Commit

Permalink
Fix TestInetEndPoint failure on GCP cloudbuild (project-chip#23584)
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca authored and adbridge committed Nov 18, 2022
1 parent 0591a6c commit 38003d6
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 38003d6

Please sign in to comment.