Skip to content

Commit

Permalink
Fix request test.
Browse files Browse the repository at this point in the history
  • Loading branch information
garg3133 committed Jan 23, 2023
1 parent 0a4ba71 commit 5406dd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/src/index/testRequest.js
Expand Up @@ -438,6 +438,8 @@ describe('test HttpRequest', function() {

const request = new HttpRequest(options);
request.on('success', function () {
fs.rmSync(appPath);

done();
}).send();

Expand All @@ -459,7 +461,5 @@ describe('test HttpRequest', function() {
assert.strictEqual(opts.headers['content-type'], `multipart/form-data; boundary=${boundary}`);
assert.strictEqual(opts.headers['content-length'], bufferData.length);
assert.ok(opts.headers['User-Agent'].startsWith('nightwatch.js/'));

fs.rmSync(appPath);
});
});

0 comments on commit 5406dd9

Please sign in to comment.