Skip to content

bug: TestProtocol_FetchBucketAndValidate flaky in staking test suite #4813

Description

@raullenchai

Description

TestProtocol_FetchBucketAndValidate fails intermittently when run as part of the full staking test suite (go test ./action/protocol/staking/) but passes consistently when run in isolation.

Reproduction

# Fails intermittently:
go test ./action/protocol/staking/ -count=1

# Always passes:
go test ./action/protocol/staking/ -run TestProtocol_FetchBucketAndValidate -v

Likely cause

Concurrent state DB access or shared test fixture race condition when other staking tests modify global state.

Observed on both macOS arm64 (M3 Pro, Go 1.26.1) and macOS arm64 (M3 Ultra, Go 1.24.6).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions