Skip to content

Commit f9f7d26

Browse files
test 小调整
1 parent ef4f4b4 commit f9f7d26

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

packages/mitmproxy/test/dnsTest.mjs

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -129,28 +129,28 @@ assert.strictEqual(ip, presetIp) // test preset
129129
console.log('\n\n')
130130

131131
assert.strictEqual(dnsProviders.cloudflare.type, 'https')
132-
ip = await dnsProviders.cloudflare.lookup(hostname1)
133-
console.log('===> test cloudflare:', ip, '\n\n')
132+
// ip = await dnsProviders.cloudflare.lookup(hostname1)
133+
// console.log('===> test cloudflare:', ip, '\n\n')
134134

135135
assert.strictEqual(dnsProviders.quad9.type, 'https')
136-
ip = await dnsProviders.quad9.lookup(hostname1)
137-
console.log('===> test quad9:', ip, '\n\n')
136+
// ip = await dnsProviders.quad9.lookup(hostname1)
137+
// console.log('===> test quad9:', ip, '\n\n')
138138

139139
assert.strictEqual(dnsProviders.aliyun.type, 'https')
140-
ip = await dnsProviders.aliyun.lookup(hostname1)
141-
console.log('===> test aliyun:', ip, '\n\n')
140+
// ip = await dnsProviders.aliyun.lookup(hostname1)
141+
// console.log('===> test aliyun:', ip, '\n\n')
142142

143143
assert.strictEqual(dnsProviders.safe360.type, 'https')
144-
ip = await dnsProviders.safe360.lookup(hostname1)
145-
console.log('===> test safe360:', ip, '\n\n')
144+
// ip = await dnsProviders.safe360.lookup(hostname1)
145+
// console.log('===> test safe360:', ip, '\n\n')
146146

147147
assert.strictEqual(dnsProviders.rubyfish.type, 'https')
148-
ip = await dnsProviders.rubyfish.lookup(hostname1)
149-
console.log('===> test rubyfish:', ip, '\n\n')
148+
// ip = await dnsProviders.rubyfish.lookup(hostname1)
149+
// console.log('===> test rubyfish:', ip, '\n\n')
150150

151151
assert.strictEqual(dnsProviders.py233.type, 'https')
152-
ip = await dnsProviders.py233.lookup(hostname1)
153-
console.log('===> test py233:', ip, '\n\n')
152+
// ip = await dnsProviders.py233.lookup(hostname1)
153+
// console.log('===> test py233:', ip, '\n\n')
154154

155155

156156
console.log('\n--------------- test TLS ---------------\n')
@@ -159,24 +159,24 @@ assert.strictEqual(ip, presetIp) // test preset
159159
console.log('\n\n')
160160

161161
assert.strictEqual(dnsProviders.cloudflareTLS.type, 'tls')
162-
ip = await dnsProviders.cloudflareTLS.lookup(hostname1)
163-
console.log('===> test cloudflareTLS:', ip, '\n\n')
162+
// ip = await dnsProviders.cloudflareTLS.lookup(hostname1)
163+
// console.log('===> test cloudflareTLS:', ip, '\n\n')
164164

165165
assert.strictEqual(dnsProviders.quad9TLS.type, 'tls')
166-
ip = await dnsProviders.quad9TLS.lookup(hostname1)
167-
console.log('===> test quad9TLS:', ip, '\n\n')
166+
// ip = await dnsProviders.quad9TLS.lookup(hostname1)
167+
// console.log('===> test quad9TLS:', ip, '\n\n')
168168

169169
assert.strictEqual(dnsProviders.aliyunTLS.type, 'tls')
170-
ip = await dnsProviders.aliyunTLS.lookup(hostname1)
171-
console.log('===> test aliyunTLS:', ip, '\n\n')
170+
// ip = await dnsProviders.aliyunTLS.lookup(hostname1)
171+
// console.log('===> test aliyunTLS:', ip, '\n\n')
172172

173173
assert.strictEqual(dnsProviders.aliyunTLS2.type, 'tls')
174-
ip = await dnsProviders.aliyunTLS2.lookup(hostname1)
175-
console.log('===> test aliyunTLS2:', ip, '\n\n')
174+
// ip = await dnsProviders.aliyunTLS2.lookup(hostname1)
175+
// console.log('===> test aliyunTLS2:', ip, '\n\n')
176176

177177
assert.strictEqual(dnsProviders.safe360TLS.type, 'tls')
178-
ip = await dnsProviders.safe360TLS.lookup(hostname1)
179-
console.log('===> test safe360TLS:', ip, '\n\n')
178+
// ip = await dnsProviders.safe360TLS.lookup(hostname1)
179+
// console.log('===> test safe360TLS:', ip, '\n\n')
180180

181181

182182
console.log('\n--------------- test TCP ---------------\n')
@@ -185,12 +185,12 @@ assert.strictEqual(ip, presetIp) // test preset
185185
console.log('\n\n')
186186

187187
assert.strictEqual(dnsProviders.googleTCP.type, 'tcp')
188-
ip = await dnsProviders.googleTCP.lookup(hostname1)
189-
console.log('===> test googleTCP:', ip, '\n\n')
188+
// ip = await dnsProviders.googleTCP.lookup(hostname1)
189+
// console.log('===> test googleTCP:', ip, '\n\n')
190190

191191
assert.strictEqual(dnsProviders.aliyunTCP.type, 'tcp')
192-
ip = await dnsProviders.aliyunTCP.lookup(hostname1)
193-
console.log('===> test aliyunTCP:', ip, '\n\n')
192+
// ip = await dnsProviders.aliyunTCP.lookup(hostname1)
193+
// console.log('===> test aliyunTCP:', ip, '\n\n')
194194

195195

196196
console.log('\n--------------- test UDP ---------------\n')
@@ -199,9 +199,9 @@ assert.strictEqual(ip, presetIp) // test preset
199199
console.log('\n\n')
200200

201201
assert.strictEqual(dnsProviders.googleUDP.type, 'udp')
202-
ip = await dnsProviders.googleUDP.lookup(hostname1)
203-
console.log('===> test googleUDP:', ip, '\n\n')
202+
// ip = await dnsProviders.googleUDP.lookup(hostname1)
203+
// console.log('===> test googleUDP:', ip, '\n\n')
204204

205205
assert.strictEqual(dnsProviders.aliyunUDP.type, 'udp')
206-
ip = await dnsProviders.aliyunUDP.lookup(hostname1)
207-
console.log('===> test aliyunUDP:', ip, '\n\n')
206+
// ip = await dnsProviders.aliyunUDP.lookup(hostname1)
207+
// console.log('===> test aliyunUDP:', ip, '\n\n')

0 commit comments

Comments
 (0)