You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a user, I would expect the following script to make k6 exit with code 104 (InvalidConfig):
exportconstoptions={vus: 'this is an invalid type',}exportdefaultfunction(){}
However, when running it, I get the following error message: ERRO[0000] could not initialize 'invalid-config.js': could not load JS test 'file:///Users/theocrevon/Dev/grafana/sandbox/k6-scripts/exitcodes/invalid-config.js': strconv.ParseInt: parsing "does not exist": invalid syntax, which I expect.
But echo $status (pardon the fish shell syntax) returns 255, which is uint8 for -1, which in my understanding is the "catch all" exit code.
k6 version
v0.51.0
OS
MacOS
Docker version and image (if applicable)
No response
Steps to reproduce the problem
k6 run the-script-above.js
Expected behaviour
As a user, I would expect this to set the exit code to 104 InvalidConfig.
Actual behaviour
Sets the exit code to 255 (uint8 equivalent of -1)
The text was updated successfully, but these errors were encountered:
Brief summary
As a user, I would expect the following script to make k6 exit with code 104 (
InvalidConfig
):However, when running it, I get the following error message:
ERRO[0000] could not initialize 'invalid-config.js': could not load JS test 'file:///Users/theocrevon/Dev/grafana/sandbox/k6-scripts/exitcodes/invalid-config.js': strconv.ParseInt: parsing "does not exist": invalid syntax
, which I expect.But
echo $status
(pardon the fish shell syntax) returns 255, which is uint8 for -1, which in my understanding is the "catch all" exit code.k6 version
v0.51.0
OS
MacOS
Docker version and image (if applicable)
No response
Steps to reproduce the problem
k6 run the-script-above.js
Expected behaviour
As a user, I would expect this to set the exit code to 104
InvalidConfig
.Actual behaviour
Sets the exit code to 255 (uint8 equivalent of -1)
The text was updated successfully, but these errors were encountered: