Skip to content

Commit

Permalink
SMC-4186: modernised before to use async / await
Browse files Browse the repository at this point in the history
  • Loading branch information
southbite committed Sep 24, 2021
1 parent f57c245 commit aaabf83
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions test/integration/26-integration-components-discover.js
Expand Up @@ -111,20 +111,14 @@ describe(require('../_lib/test-helper').testName(__filename, 3), function() {
});
});

before('start cluster', function(done) {
before('start cluster', async () => {
this.timeout(20000);

Promise.all([
servers = await Promise.all([
HappnerCluster.create(localInstanceConfig(getSeq.getFirst())),
HappnerCluster.create(remoteInstance1Config(getSeq.getNext())),
HappnerCluster.create(remoteInstance2Config(getSeq.getNext()))
])
.then(function(_servers) {
servers = _servers;
localInstance = servers[0];
done();
})
.catch(done);
]);
localInstance = servers[0];
});

after('stop cluster', function(done) {
Expand Down

0 comments on commit aaabf83

Please sign in to comment.