sysinfo: async'ify
in the process, provision, dyndns, mail, dns also got further asyncified
This commit is contained in:
+4
-10
@@ -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*/) => {});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user