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.

Open

#1,893 建立於 2026年1月12日

在 GitHub 查看
 (11 留言) (0 反應) (0 負責人)Groovy (486 fork)batch import
buggood first issuehelp wantedtriage

倉庫指標

Star
 (1,127 star)
PR 合併指標
 (平均合併 1天 5小時) (30 天內合併 2 個 PR)

描述

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?

貢獻者指南