Skip to content

Commit 38003d6

Browse files
yufengwangcaadbridge
authored andcommittedNov 18, 2022
Fix TestInetEndPoint failure on GCP cloudbuild (project-chip#23584)
1 parent 0591a6c commit 38003d6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎src/inet/tests/TestInetEndPoint.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,13 @@ static void TestInetEndPointInternal(nlTestSuite * inSuite, void * inContext)
265265
NL_TEST_ASSERT(inSuite, SYSTEM_STATS_TEST_IN_USE(System::Stats::kInetLayer_NumUDPEps, 1));
266266

267267
err = InterfaceId::Null().GetLinkLocalAddr(&addr);
268+
269+
// We should skip the following checks if the interface does not have the Link local address
270+
if (err == INET_ERROR_ADDRESS_NOT_FOUND)
271+
{
272+
return;
273+
}
274+
268275
NL_TEST_ASSERT(inSuite, err == CHIP_NO_ERROR);
269276
intId = InterfaceId::FromIPAddress(addr);
270277
NL_TEST_ASSERT(inSuite, intId.IsPresent());

0 commit comments

Comments
 (0)