Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ export const testsForRpcMethodSupportingBlockParam = (
// block-cache middleware will request the latest block number
// through the block tracker to determine the cache key.
comms.mockNextBlockTrackerRequest();
// A second block tracker request is made for some reason
comms.mockNextBlockTrackerRequest();
comms.mockRpcCall({
delay: 100,
request: buildRequestWithReplacedBlockParam(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const testsForRpcMethodAssumingNoBlockParam = (
});

for (const paramIndex of [...Array(numberOfParameters).keys()]) {
it(`does not reuse the result of a previous request if parameter at index "${paramIndex}" differs`, async () => {// eslint-disable-line
it(`does not reuse the result of a previous request if parameter at index "${paramIndex}" differs`, async () => {
Copy link
Member Author

Choose a reason for hiding this comment

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

My editor removed this when I formatted the document. I'm not sure why it was there in the first place, but it appears to have been unnecessary.

const firstMockParams = [
...new Array(numberOfParameters).fill('some value'),
];
Expand Down Expand Up @@ -215,6 +215,8 @@ export const testsForRpcMethodAssumingNoBlockParam = (
// number is retrieved through the block tracker first. It doesn't
// matter what this is — it's just used as a cache key.
comms.mockNextBlockTrackerRequest();
// A second block tracker request is made for some reason
comms.mockNextBlockTrackerRequest();
comms.mockRpcCall({
request: requests[0],
response: { result: mockResults[0] },
Expand Down