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

fix: cli -- collection run -- clone request item at start #3760

Conversation

lohxt1
Copy link
Collaborator

@lohxt1 lohxt1 commented Jan 8, 2025

fixes: #3748 for cli

~ fixes the issue where the execution count of the collection post-response script increases with each setNextRequest call.
~ the original request object was being modified, and setNextRequest was using the modified request with the merged collection post-response script, instead of an unmodified one.

solution:
clone the request item before every execution

before:
before


after:
after

@helloanoop helloanoop merged commit 3cb15fc into usebruno:main Jan 8, 2025
2 checks passed
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 this pull request may close these issues.

Collection-Tests are accumulating in the runner for requests when using bru.setNextRequest()
2 participants