mirror of
https://gitee.com/openharmony/request_request
synced 2024-11-23 06:49:58 +00:00
update test based http
Signed-off-by: Shenyx <shenyuxiang3@h-partners.com> Change-Id: I07f8e7fce8832061d12c3bb08d1830944aa86e58
This commit is contained in:
parent
d85649559d
commit
89f1638a39
@ -366,7 +366,7 @@ export default function requestDownloadFileTest() {
|
||||
*/
|
||||
it('testDownloadFileOn003', 0, async function (done) {
|
||||
let conf = {
|
||||
url: 'https://www.aaaaaaa.com/test.txt',
|
||||
url: 'http://www.ylong_http.client.com/test.txt',
|
||||
}
|
||||
let task = await request.downloadFile(context, conf);
|
||||
try {
|
||||
@ -954,7 +954,7 @@ export default function requestDownloadFileTest() {
|
||||
*/
|
||||
it('testDownloadFileOff010', 0, async function (done) {
|
||||
let conf = {
|
||||
url: 'https://www.aaaaaaa.com/test.txt',
|
||||
url: 'http://www.ylong_http.client.com/test.txt',
|
||||
}
|
||||
let task = await request.downloadFile(context, conf);
|
||||
try {
|
||||
@ -992,7 +992,7 @@ export default function requestDownloadFileTest() {
|
||||
fs.unlinkSync(filePath);
|
||||
}
|
||||
let conf = {
|
||||
url: 'https://www.aaaaaaa.com/test.txt',
|
||||
url: 'http://www.ylong_http.client.com/test.txt',
|
||||
}
|
||||
let task = await request.downloadFile(context, conf);
|
||||
try {
|
||||
@ -1384,7 +1384,7 @@ export default function requestDownloadFileTest() {
|
||||
fs.unlinkSync(filePath);
|
||||
}
|
||||
let conf = {
|
||||
url: 'https://www.aaaaaaa.com/test.txt',
|
||||
url: 'http://www.ylong_http.client.com/test.txt',
|
||||
}
|
||||
let task = await request.downloadFile(context, conf);
|
||||
try {
|
||||
@ -1422,7 +1422,7 @@ export default function requestDownloadFileTest() {
|
||||
fs.unlinkSync(filePath);
|
||||
}
|
||||
let conf = {
|
||||
url: 'https://www.aaaaaaa.com/test.txt',
|
||||
url: 'http://www.ylong_http.client.com/test.txt',
|
||||
}
|
||||
let task = await request.downloadFile(context, conf);
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user