@@ -32,39 +32,38 @@ describe('dns-list', function () {
3232
3333 it ( 'sets up a transaction' , function ( ) {
3434 this . connection = fixtures . connection . createConnection ( { } )
35- this . connection . transaction = fixtures . transaction . createTransaction ( { } )
36- // console.log(this.connection.transaction)
35+ this . connection . init_transaction ( )
3736 assert . ok ( this . connection . transaction . header )
3837 } )
3938} )
4039
4140describe ( 'lookup' , function ( ) {
4241 it ( 'Spamcop, test IPv4' , async function ( ) {
43- this . timeout = 4000
42+ this . timeout = 4000
4443 const a = await this . plugin . lookup ( '127.0.0.2' , 'bl.spamcop.net' )
4544 assert . deepStrictEqual ( [ '127.0.0.2' ] , a )
4645 } )
4746
4847 it ( 'Spamcop, unlisted IPv6' , async function ( ) {
49- this . timeout = 4000
48+ this . timeout = 4000
5049 const r = await this . plugin . lookup ( '::1' , 'bl.spamcop.net' )
5150 assert . deepStrictEqual ( undefined , r )
5251 } )
5352
5453 it ( 'b.barracudacentral.org, unlisted IPv6' , async function ( ) {
55- this . timeout = 4000
54+ this . timeout = 4000
5655 const r = await this . plugin . lookup ( '::1' , 'b.barracudacentral.org' )
5756 assert . deepStrictEqual ( undefined , r )
5857 } )
5958
6059 it ( 'Spamcop, unlisted IPv4' , async function ( ) {
61- this . timeout = 4000
60+ this . timeout = 4000
6261 const a = await this . plugin . lookup ( '127.0.0.1' , 'bl.spamcop.net' )
6362 assert . deepStrictEqual ( undefined , a )
6463 } )
6564
6665 it ( 'CBL' , async function ( ) {
67- this . timeout = 4000
66+ this . timeout = 4000
6867 const a = await this . plugin . lookup ( '127.0.0.2' , 'xbl.spamhaus.org' )
6968 assert . deepStrictEqual ( a , [ '127.0.0.4' ] )
7069 } )
0 commit comments