Request time out

Hi.

Where do I set the request timeout value and what is the default value the k6 pre-configures.

Is there a way to set it globally for a specific file or for every file?

Thanks.

You can use the request Params to specify the timeout value for each request and it’s 60s by default.

Unfortunately, you can’t specify it globally yet, though it’s easy enough to write your own request helper function that wraps around the k6/http functions and sets whatever timeout you desire before it calls them :man_shrugging:

1 Like