Skip to content

feat : allow rpc mock to insert multiple duplicate requests #5757

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Nagaprasadvr
Copy link

@Nagaprasadvr Nagaprasadvr commented Apr 11, 2025

Problem
Currently rpc mock uses Hashmap to populate RpcRequest and Json Response Value , but we cannot add multiple similar requests to this as its a Hashmap

Solution
Migrate from Hashmap to Vec<(RpcRequest, Value)> and impl the necessary methods and retain insert and remove methods

@mergify mergify bot requested a review from a team April 11, 2025 07:35
@Nagaprasadvr Nagaprasadvr force-pushed the rpc-mock-migrate-from-Hashmap-to-vec branch from 2107613 to 63ad411 Compare April 11, 2025 07:38
Copy link

@kespinola kespinola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a spec covering this is in order. The existing specs will cover backward compatibility but also good to have coverage on the multi request.

@Nagaprasadvr Nagaprasadvr force-pushed the rpc-mock-migrate-from-Hashmap-to-vec branch from 1aed3f8 to 40d5df4 Compare April 11, 2025 08:23
@Nagaprasadvr
Copy link
Author

I think a spec covering this is in order. The existing specs will cover backward compatibility but also good to have coverage on the multi request.

added a test spec

Copy link

@kespinola kespinola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG2M

@Nagaprasadvr Nagaprasadvr changed the title feat: allow rpc mock to insert multiple same requests by migrating fr… feat : allow rpc mock to insert multiple duplicate requests Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants