From 078ca67268dd100d4c43f5e084297f164206c280 Mon Sep 17 00:00:00 2001 From: Zaiming Shi Date: Tue, 27 Apr 2021 19:33:31 +0200 Subject: [PATCH] test(emqx_auth_http): test ipv6 + hostname resolution --- apps/emqx_auth_http/test/emqx_auth_http_SUITE.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/emqx_auth_http/test/emqx_auth_http_SUITE.erl b/apps/emqx_auth_http/test/emqx_auth_http_SUITE.erl index 4a5217419..ef692e886 100644 --- a/apps/emqx_auth_http/test/emqx_auth_http_SUITE.erl +++ b/apps/emqx_auth_http/test/emqx_auth_http_SUITE.erl @@ -138,10 +138,10 @@ set_https_client_opts() -> application:set_env(emqx_auth_http, server_name_indication, "disable"). %% @private -http_server(http, inet) -> "http://127.0.0.1:8991"; -http_server(http, inet6) -> "http://[::1]:8991"; -http_server(https, inet) -> "https://127.0.0.1:8991"; -http_server(https, inet6) -> "https://[::1]:8991". +http_server(http, inet) -> "http://127.0.0.1:8991"; % ipv4 +http_server(http, inet6) -> "http://localhost:8991"; % test hostname resolution +http_server(https, inet) -> "https://localhost:8991"; % test hostname resolution +http_server(https, inet6) -> "https://[::1]:8991". % ipv6 %%------------------------------------------------------------------------------ %% Testcases