-
Notifications
You must be signed in to change notification settings - Fork 445
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
base: master
Are you sure you want to change the base?
feat
: allow rpc mock to insert multiple duplicate requests
#5757
Conversation
…om Hashmap to Vec
2107613
to
63ad411
Compare
There was a problem hiding this 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.
1aed3f8
to
40d5df4
Compare
added a test spec |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG2M
feat
: allow rpc mock to insert multiple duplicate requests
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