From ef7f300a7bc303d94280246661146ca720b90f2b Mon Sep 17 00:00:00 2001 From: hgw Date: Wed, 4 Dec 2024 19:48:41 +0800 Subject: [PATCH] =?UTF-8?q?release4.1=E4=BF=AE=E6=94=B9http=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E5=A4=B1=E6=95=88=E8=BF=9E=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: hgw --- .../entry/src/main/ets/test/RequestMethodJsunit.test.ets | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/telephony/telephonyjstest/netmanager_http/entry/src/main/ets/test/RequestMethodJsunit.test.ets b/telephony/telephonyjstest/netmanager_http/entry/src/main/ets/test/RequestMethodJsunit.test.ets index 9c249972a0c..035d9443d3b 100644 --- a/telephony/telephonyjstest/netmanager_http/entry/src/main/ets/test/RequestMethodJsunit.test.ets +++ b/telephony/telephonyjstest/netmanager_http/entry/src/main/ets/test/RequestMethodJsunit.test.ets @@ -181,7 +181,7 @@ export default function requestMethodJsunit() { */ it("SUB_Telephony_http_HttpRequestMethod_POST_0100", 0, async function (done) { - var casename = "SUB_Telephony_http_HttpRequestMethod_0300" + var casename = "SUB_Telephony_http_HttpRequestMethod_POST_0100" console.log("-----------------------HttpRequestMethod_POST Test is starting-----------------------"); try { let httpRequestOptions = { @@ -200,7 +200,7 @@ export default function requestMethodJsunit() { connectTimeout: 60000 } var httpRequest = http.createHttp(); - httpRequest.request("https://image.baidu.com/search/albumsdetail/", httpRequestOptions, (err, data) => { + httpRequest.request("https://image.baidu.com/search/detail", httpRequestOptions, (err, data) => { console.log(casename + JSON.stringify(err) + " data: " + JSON.stringify(data)); expect(data.responseCode == 200).assertTrue(); httpRequest.destroy(); @@ -245,7 +245,7 @@ export default function requestMethodJsunit() { connectTimeout: 60000 } var httpRequest = http.createHttp(); - httpRequest.request("https://image.baidu.com/search/albumsdetail/", httpRequestOptions).then(data => { + httpRequest.request("https://image.baidu.com/search/detail", httpRequestOptions).then(data => { console.log(casename + JSON.stringify(data)); expect(data.responseCode == 200).assertTrue(); httpRequest.destroy(); -- Gitee