diff --git a/src/actions/public/getBlockNumber.test.ts b/src/actions/public/getBlockNumber.test.ts index 2b5a49363b..3d3e3f4286 100644 --- a/src/actions/public/getBlockNumber.test.ts +++ b/src/actions/public/getBlockNumber.test.ts @@ -31,7 +31,7 @@ test('behavior: caches blockNumber within cacheTime', async () => { vi.useFakeTimers() const a = await getBlockNumber(client, { cacheTime }) - mine(client, { blocks: 1 }) + await mine(client, { blocks: 1 }) vi.advanceTimersByTime(cacheTime / 2) const b = await getBlockNumber(client)