diff --git a/packages/network-controller/tests/provider-api-tests/block-param.ts b/packages/network-controller/tests/provider-api-tests/block-param.ts index 982150bfdc..4cc939db1f 100644 --- a/packages/network-controller/tests/provider-api-tests/block-param.ts +++ b/packages/network-controller/tests/provider-api-tests/block-param.ts @@ -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( diff --git a/packages/network-controller/tests/provider-api-tests/no-block-param.ts b/packages/network-controller/tests/provider-api-tests/no-block-param.ts index 018b8c8e01..92e2782e9e 100644 --- a/packages/network-controller/tests/provider-api-tests/no-block-param.ts +++ b/packages/network-controller/tests/provider-api-tests/no-block-param.ts @@ -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 () => { const firstMockParams = [ ...new Array(numberOfParameters).fill('some value'), ]; @@ -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] },