Maximum number of redirects for k6

Back under version Load Impact 3.0 (LUA) we ran into an issue where we could not performance test a SSO (Single Sign-On) client with the tool because it had a maximum of 5 redirects. I’m wondering if there is such a limit on k6. I would just test this out myself but I’m being asked for a quick answer and don’t have access to the environment.

It is a configurable parameter at the request level (params docs) and the global test level (maxRedirects). maxRedirects is set to 10 by default.

4 Likes