From 890b7359856f576a316ded8ee5a75f8c1adc11c1 Mon Sep 17 00:00:00 2001 From: fufesou Date: Sat, 4 May 2024 14:06:41 +0800 Subject: [PATCH] fix: test case, test_if_valid_server (#7903) Signed-off-by: fufesou --- libs/hbb_common/src/socket_client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/hbb_common/src/socket_client.rs b/libs/hbb_common/src/socket_client.rs index 0264b70dd..4cb0bf204 100644 --- a/libs/hbb_common/src/socket_client.rs +++ b/libs/hbb_common/src/socket_client.rs @@ -259,8 +259,8 @@ mod tests { // on Linux, "1" is resolved to "0.0.0.1" assert!(test_if_valid_server("1.1.1.1", false).is_empty()); assert!(test_if_valid_server("1.1.1.1:1", false).is_empty()); - assert!(test_if_valid_server("abcd.com", false).is_empty()); - assert!(test_if_valid_server("abcd.com:1", false).is_empty()); + assert!(test_if_valid_server("microsoft.com", false).is_empty()); + assert!(test_if_valid_server("microsoft.com:1", false).is_empty()); // with proxy // `:0` indicates `let host = check_port(host, 0);` is called.