Skip to content

Pact weird behaviour in the contract if same test is present in two class files for same consumer and provider pair. #1893

@OmkarSharan

Description

@OmkarSharan

I was writing this scenario, where accidently I had written the a test case in two different class with same consumer and provider pair which is having Authorization header in the api request.

So when I publish the contract from one test class, contract was perfectly fine, but when I ran the second test class with exact same test case and publish the contract there was extra space coming in the authorization header.

Not sure why this happen?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorgood first issueIndicates a good issue for first-time contributorshelp wantedIndicates that a maintainer wants help on an issue or pull requesttriageThis issue is yet to be triaged by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions