From: Seonah Moon Date: Mon, 25 Apr 2022 09:10:06 +0000 (+0900) Subject: [UTC][http][Non-ACR][Change tested URL for negative TC] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c22faaf7b8a423aed0571081f511293e34bc78d6;p=test%2Ftct%2Fnative%2Fapi.git [UTC][http][Non-ACR][Change tested URL for negative TC] Used URL for Negative TC became accessible. Change-Id: Iac668de43b4c9be090101e140b47d948dc937032 Signed-off-by: Seonah Moon --- diff --git a/src/utc/http/utc-network-http.c b/src/utc/http/utc-network-http.c index e7d414ff3..b3f125112 100755 --- a/src/utc/http/utc-network-http.c +++ b/src/utc/http/utc-network-http.c @@ -30,6 +30,8 @@ var = NULL;\ } +#define INVALID_URL "http://www." + http_session_h session = NULL; http_transaction_h transaction = NULL; @@ -2813,16 +2815,15 @@ int utc_http_transaction_submit_n1(void) int utc_http_transaction_submit_n2(void) { int ret; - const char uri[100] = "http://wwwww.12323.org"; #ifdef WEARABLE if (g_internet_supported == false) { - ret = http_transaction_request_set_uri(transaction, uri); + ret = http_transaction_request_set_uri(transaction, INVALID_URL); assert_eq(ret, TIZEN_ERROR_NOT_SUPPORTED); return 0; } #endif - ret = http_transaction_request_set_uri(transaction, uri); + ret = http_transaction_request_set_uri(transaction, INVALID_URL); assert_eq(ret, HTTP_ERROR_NONE); ret = http_transaction_submit(transaction);