make waitForDns take zone name argument

part of #110
This commit is contained in:
Girish Ramakrishnan
2017-06-11 22:12:23 -07:00
parent ded31b977e
commit c760c42f92
3 changed files with 5 additions and 4 deletions

View File

@@ -46,8 +46,9 @@ function del(dnsConfig, zoneName, subdomain, type, values, callback) {
return callback();
}
function waitForDns(domain, value, type, options, callback) {
function waitForDns(domain, zoneName, value, type, options, callback) {
assert.strictEqual(typeof domain, 'string');
assert.strictEqual(typeof zoneName, 'string');
assert(typeof value === 'string' || util.isRegExp(value));
assert(type === 'A' || type === 'CNAME' || type === 'TXT');
assert(options && typeof options === 'object'); // { interval: 5000, times: 50000 }