Skip to content

Commit 182b4f7

Browse files
committed
remove third call condition
1 parent 4bfeb66 commit 182b4f7

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

test/integration/initial-dns-seedlist-discovery/dns_seedlist.test.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ describe('DNS timeout errors', () => {
8585
.onFirstCall()
8686
.rejects(new DNSTimeoutError())
8787
.onSecondCall()
88-
.rejects(new DNSTimeoutError())
89-
.onThirdCall()
90-
.callsFake(restoreDNS('resolveSrv'));
88+
.rejects(new DNSTimeoutError());
9189
});
9290

9391
afterEach(async function () {
@@ -97,6 +95,7 @@ describe('DNS timeout errors', () => {
9795
it('throws timeout error', metadata, async () => {
9896
const error = await client.connect().catch(error => error);
9997
expect(error).to.be.instanceOf(DNSTimeoutError);
98+
expect(stub).to.have.been.calledTwice;
10099
});
101100
});
102101

@@ -107,9 +106,7 @@ describe('DNS timeout errors', () => {
107106
.onFirstCall()
108107
.rejects(new DNSTimeoutError())
109108
.onSecondCall()
110-
.rejects(new DNSTimeoutError())
111-
.onThirdCall()
112-
.callsFake(restoreDNS('resolveTxt'));
109+
.rejects(new DNSTimeoutError());
113110
});
114111

115112
afterEach(async function () {

0 commit comments

Comments
 (0)