waitForDns: support AAAA

This commit is contained in:
Girish Ramakrishnan
2022-01-06 22:07:26 -08:00
parent 3fd45f8537
commit 37d641ec76
2 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ async function removeDnsRecords(location, domain, type, values) {
async function waitForDnsRecord(location, domain, type, value, options) {
assert.strictEqual(typeof location, 'string');
assert.strictEqual(typeof domain, 'string');
assert(type === 'A' || type === 'TXT');
assert(type === 'A' || type === 'AAAA' || type === 'TXT');
assert.strictEqual(typeof value, 'string');
assert(options && typeof options === 'object'); // { interval: 5000, times: 50000 }