pact-foundation/pact-jvm

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

オープン

#1,893 opened on 2026/01/12

 (11 件のコメント) (0 件のリアクション) (0 人の担当者)Kotlin (489 件のフォーク)batch import
buggood first issuehelp wantedtriage

Repository metrics

Stars
 (1,141 個のスター)
PR merge metrics
 (平均マージ 1h 51m) (30d で 4 merged PRs)

説明

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?

コントリビューターガイド