Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--forever does not work from the command line #358

Closed
skywickenden opened this issue Apr 7, 2021 · 1 comment · Fixed by #360
Closed

--forever does not work from the command line #358

skywickenden opened this issue Apr 7, 2021 · 1 comment · Fixed by #360
Labels

Comments

@skywickenden
Copy link
Contributor

Using the -f/--forever flag on the command line results in an error. EG:

node autocannon -f http://localhost:5000

results in

/Users/sky/NearForm/autocannon/autocannon/autocannon.js:235
    initJob(argv).catch((err) => {
                       ^

TypeError: initJob(...).catch is not a function
    at start (/Users/sky/NearForm/autocannon/autocannon/autocannon.js:235:24)
    at Object.<anonymous> (/Users/sky/NearForm/autocannon/autocannon/autocannon.js:264:3)
    at Module._compile (internal/modules/cjs/loader.js:1156:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
    at internal/main/run_main_module.js:18:47
@mcollina
Copy link
Owner

mcollina commented Apr 7, 2021

Good spot! Would you like to send a Pull Request to address this issue? Remember to add unit tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants