fix: remove unwanted async calls

This commit is contained in:
Sérgio Salgado 2021-01-18 16:03:28 +00:00 committed by Josh Harvey
parent 2151c4b4aa
commit c1044232e9
3 changed files with 11 additions and 11 deletions

View file

@ -5,8 +5,8 @@ const minimist = require('minimist')
const cmd = require('./scripts')
const variables = require('./utils/variables')
async function createMachines (numberOfMachines) {
await cmd.execCommand(
function createMachines (numberOfMachines) {
return cmd.execCommand(
`bash ./scripts/create-machines.sh ${numberOfMachines} ${variables.SERVER_CERT_PATH} ${variables.MACHINE_PATH}`
)
}
@ -20,8 +20,8 @@ async function run (args = minimist(process.argv.slice(2))) {
const NUMBER_OF_MACHINES = args._[0]
const HAS_VARIANCE = args.v || false
startServer()
await createMachines(NUMBER_OF_MACHINES)
startServer()
for (let i = 1; i <= NUMBER_OF_MACHINES; i++) {
const forked = fork('child.js')