Skip to content

Commit

Permalink
test: fix linting issues
Browse files Browse the repository at this point in the history
PR-URL: #70
Reviewed-by: Trevor Norris <trev.norris@gmail.com>
  • Loading branch information
santigimeno authored and trevnorris committed Jan 25, 2024
1 parent d65edba commit 2326725
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/addons/nsolid-tracing/test-dns-lookupService-promises.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const expectedTraces = [

checkTracesOnExit(binding, expectedTraces);

setupNSolid(common.mustCall(() => {
setupNSolid(common.mustCall(async () => {
dnsPromises.lookupService('127.0.0.1', 22).then(common.mustCall((result) => {
assert.strictEqual(result.service, 'ssh');
assert.strictEqual(typeof result.hostname, 'string');
Expand All @@ -49,7 +49,7 @@ setupNSolid(common.mustCall(() => {

// Use an IP from the RFC 5737 test range to cause an error.
// Refs: https://tools.ietf.org/html/rfc5737
assert.rejects(
await assert.rejects(
() => dnsPromises.lookupService('192.0.2.1', 22),
{ code: /^(?:ENOTFOUND|EAI_AGAIN)$/ },
);
Expand Down
4 changes: 2 additions & 2 deletions test/addons/nsolid-tracing/test-dns-resolve-promises.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ checkTracesOnExit(binding, expectedTraces);
// Stub cares to force an error so we can test DNS error code path.
cares.ChannelWrap.prototype.queryA = () => UV_EPERM;

setupNSolid(common.mustCall(() => {
assert.rejects(
setupNSolid(common.mustCall(async () => {
await assert.rejects(
dnsPromises.resolve('example.org'),
{
code: 'EPERM',
Expand Down

0 comments on commit 2326725

Please sign in to comment.