Skip to content

Add follow up tests for hook handler lazy loading race conditions #5902

@kanej

Description

@kanej

We merged in a bug fix for some race conditions in some of our dynamic import patterns: #5899

We need to add integration tests to cover the bug: https://github.com/NomicFoundation/hardhat-v3-alpha-testing/blob/8bf0bf69b6207a979ba16f59a13c8ee9f6c17a35/viem-provider-error/test/Lock.ts#L6

Specifically adding a second describe block that makes a second connection and uses it can cause issues where a race condition means both networks have the same network id (leading to incorrect accessing of cached data by network id).

Metadata

Metadata

Assignees

No one assigned

    Labels

    v-nextA Hardhat v3 development task

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions