-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: request counter race for concurrent requests matching the same i…
…nteraction (#46) For each interaction, we keep track of the number of times it has been called. That counter can be used in the modifiers to change the response returned to the client. For example it is possible to change the return status on the 2nd invocation of a specific interaction. The code has a bug when concurrent requests happen for the same interaction. The change modifies the way the concurrency is managed just for the request counter. As part of this change, we have added a new test that can be used to prove that the original code has the issue and the proposed version fixes it. Co-authored-by: Andrea Rosa <[email protected]> Co-authored-by: Shreya Garge <[email protected]>
- Loading branch information
1 parent
7388a82
commit 83a4313
Showing
6 changed files
with
81 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters