Skip to content

Commit dc90501

Browse files
committed
make tests more robust
1 parent 9635d93 commit dc90501

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/unit/cmap/auth/gssapi.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ describe('GSSAPI', () => {
8383
expect(host).to.equal(resolved);
8484
expect(dns.lookup).to.be.calledOnceWith(hostName);
8585
expect(dns.resolve).to.be.calledOnceWith(lookedUp.address, 'PTR');
86-
expect(dns.resolve).to.not.be.calledOnceWith(lookedUp.address, 'CNAME');
86+
expect(dns.resolve).to.not.be.calledWith(lookedUp.address, 'CNAME');
8787
});
8888
});
8989

@@ -107,7 +107,7 @@ describe('GSSAPI', () => {
107107
expect(host).to.equal(resolved);
108108
expect(dns.lookup).to.be.calledOnceWith(hostName);
109109
expect(dns.resolve).to.be.calledOnceWith(lookedUp.address, 'PTR');
110-
expect(dns.resolve).to.not.be.calledOnceWith(sinon.match.string, 'CNAME');
110+
expect(dns.resolve).to.not.be.calledWith(sinon.match.string, 'CNAME');
111111
});
112112
});
113113
});

0 commit comments

Comments
 (0)