sysinfo: async'ify

in the process, provision, dyndns, mail, dns also got further asyncified
This commit is contained in:
Girish Ramakrishnan
2021-08-27 09:52:24 -07:00
parent 1856caf972
commit 51d067cbe3
26 changed files with 782 additions and 1082 deletions
+4 -10
View File
@@ -93,18 +93,12 @@ describe('DNS', function () {
});
describe('register', function () {
it('registers subdomain', function (done) {
dns.registerLocations([ { subdomain: app.location, domain: app.domain } ], { overwriteDns: true }, (/*progress*/) => {}, function (error) {
expect(error).to.be(null);
done();
});
it('registers subdomain', async function () {
await dns.registerLocations([ { subdomain: app.location, domain: app.domain } ], { overwriteDns: true }, (/*progress*/) => {});
});
it('unregisters subdomain', function (done) {
dns.unregisterLocations([ { subdomain: app.location, domain: app.domain } ], (/*progress*/) => {}, function (error) {
expect(error).to.be(null);
done();
});
it('unregisters subdomain', async function () {
await dns.unregisterLocations([ { subdomain: app.location, domain: app.domain } ], (/*progress*/) => {});
});
});
});