Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
fix: fix browser tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Santos committed Oct 9, 2019
1 parent 42f2f78 commit 4f38311
Show file tree
Hide file tree
Showing 6 changed files with 371 additions and 172 deletions.
25 changes: 12 additions & 13 deletions .aegir.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,26 @@ module.exports = {
},
hooks: {
browser: {
pre: (done) => {
parallel([
(cb) => server.start(cb),
(cb) => {
pre: async () => {
await server.start()
return new Promise((resolve, reject) => {
rendezvous.start({
port: 24642
}, (err, _rzserver) => {
if (err) {
return done(err)
return reject(err)
}
rzserver = _rzserver
cb()
resolve()
})
}
], done)
})
},
post: (done) => {
parallel([
(cb) => server.stop(cb),
(cb) => rzserver.stop(cb)
], done)
post: async () => {
await server.stop()

return new Promise((resolve) => {
rzserver.stop(resolve)
})
}
}
}
Expand Down
Loading

0 comments on commit 4f38311

Please sign in to comment.