File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
test/integration/initial-dns-seedlist-discovery Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff 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 ( ) {
You can’t perform that action at this time.
0 commit comments