Skip to content

[Engineering task] Fix tests #5867

@gladjohn

Description

@gladjohn

Task type

Test

Description

extraExpectedHeaders is assigned to TestConstants.s_extraHttpHeader (a static Dictionary) and then mutated via Add(...). This makes the shared static headers stateful across tests and can create order-dependent/flaky behavior. Create a per-test copy of the dictionary before adding the CCS header, and pass that same per-test instance to both the mock handler setup and WithExtraHttpHeaders.

Image

Solution

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions