diff --git a/test/src/index/testRequest.js b/test/src/index/testRequest.js index 0becdd6f0a..f543a1cefa 100644 --- a/test/src/index/testRequest.js +++ b/test/src/index/testRequest.js @@ -415,7 +415,7 @@ describe('test HttpRequest', function() { }); it('send POST request with multi-part form data', function(done) { - const appPath = path.resolve(__dirname, '../../extra/output/app.apk'); + const appPath = path.resolve(__dirname, '../../extra/temp/app.apk'); const appDir = path.dirname(appPath); fs.mkdirSync(appDir, {recursive: true}); @@ -438,8 +438,6 @@ describe('test HttpRequest', function() { const request = new HttpRequest(options); request.on('success', function () { - fs.rmSync(appPath); - done(); }).send();