|
|
@@ -35,6 +35,8 @@ static const char *TAG = "esp32_eth_test";
|
|
|
#define ETH_PING_DURATION_MS (5000)
|
|
|
#define ETH_PING_END_TIMEOUT_MS (ETH_PING_DURATION_MS * 2)
|
|
|
|
|
|
+#define TEST_ICMP_DESTINATION_DOMAIN_NAME "127.0.0.1"
|
|
|
+
|
|
|
// compute md5 of download file
|
|
|
static md5_context_t md5_context;
|
|
|
static uint8_t digest[16];
|
|
|
@@ -343,7 +345,7 @@ TEST_CASE("esp32 ethernet icmp test", "[ethernet][test_env=UT_T2_Ethernet]")
|
|
|
memset(&hint, 0, sizeof(hint));
|
|
|
memset(&target_addr, 0, sizeof(target_addr));
|
|
|
/* convert URL to IP */
|
|
|
- TEST_ASSERT(getaddrinfo("www.espressif.com", NULL, &hint, &res) == 0);
|
|
|
+ TEST_ASSERT(getaddrinfo(TEST_ICMP_DESTINATION_DOMAIN_NAME, NULL, &hint, &res) == 0);
|
|
|
struct in_addr addr4 = ((struct sockaddr_in *)(res->ai_addr))->sin_addr;
|
|
|
inet_addr_to_ip4addr(ip_2_ip4(&target_addr), &addr4);
|
|
|
freeaddrinfo(res);
|