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

Send unique payload on each request on each connection during load testing #527

Open
amroczeK opened this issue Jul 29, 2024 · 1 comment

Comments

@amroczeK
Copy link

As per the title, I am trying to send a unique payload for each POST request autocannon sends during load testing to circumvent a caching layer.

I have tried using client.setBody, client.setRequest and client.setRequests with setupClient but it seems to modify the request once per connection.

Any suggestions is welcome! :)

@mcollina
Copy link
Owner

mcollina commented Sep 3, 2024

You need to use setupRequest()

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

No branches or pull requests

2 participants