Skip to content

Commit

Permalink
test: remove test containing race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
tcort committed Nov 5, 2024
1 parent b2ad5fa commit 9f4d404
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions test/link-check.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,18 +268,6 @@ describe('link-check', function () {
});
});

it('should handle timeout for mailto validation', function (done) {
linkCheck('mailto:[email protected]', { timeout: '1ms' }, function (err, result) {
expect(err).to.be(null);
expect(result.link).to.be('mailto:[email protected]');
expect(result.status).to.be('dead');
expect(result.statusCode).to.be(0);
expect(result.err.code).to.be('ECONNRESET');
expect(result.err.message).to.be('Domain MX lookup timed out');
done();
});
});

it('should handle valid mailto with encoded characters in address', function (done) {
linkCheck('mailto:foo%[email protected]', function (err, result) {
expect(err).to.be(null);
Expand Down

0 comments on commit 9f4d404

Please sign in to comment.