Fix TestInetEndPoint failure on GCP cloudbuild (#23584)
diff --git a/src/inet/tests/TestInetEndPoint.cpp b/src/inet/tests/TestInetEndPoint.cpp
index 1e4ef41..09aeba6 100644
--- a/src/inet/tests/TestInetEndPoint.cpp
+++ b/src/inet/tests/TestInetEndPoint.cpp
@@ -265,6 +265,13 @@
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());