Skip to content

Commit b90d88b

Browse files
authored
Housekeeping: Fix flaky Gpp test (#4474)
1 parent a9325a7 commit b90d88b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/test/groovy/org/prebid/server/functional/tests/privacy/GppCookieSyncSpec.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,11 +385,11 @@ class GppCookieSyncSpec extends BaseSpec {
385385
]
386386
}
387387

388-
def "PBS shouldn't emit error message when request doesn't contain gdpr config and global skip gdpr config for adapter"() {
388+
def "PBS should allow sync without error when GPP SID is not excluded and GDPR is out of scope"() {
389389
given: "Default CookieSyncRequest with gdpr config"
390-
def gppSid = TCF_EU_V2
390+
def gppSidExcludeSkipValues = PBSUtils.getRandomEnum(GppSectionId.class, [FIRST_GPP_SECTION, SECOND_GPP_SECTION])
391391
def cookieSyncRequest = CookieSyncRequest.defaultCookieSyncRequest.tap {
392-
it.gppSid = gppSid.intValue
392+
it.gppSid = gppSidExcludeSkipValues.intValue
393393
it.gdpr = 0
394394
it.gdprConsent = new TcfConsent.Builder().build()
395395
}
@@ -400,7 +400,7 @@ class GppCookieSyncSpec extends BaseSpec {
400400
then: "Response userSync url should contain cookies and userSync"
401401
def bidderStatus = response.getBidderUserSync(GENERIC)
402402
assert HttpUtil.findUrlParameterValue(bidderStatus.userSync?.url, "gpp") == ""
403-
assert HttpUtil.findUrlParameterValue(bidderStatus.userSync?.url, "gpp_sid") == gppSid.value
403+
assert HttpUtil.findUrlParameterValue(bidderStatus.userSync?.url, "gpp_sid") == gppSidExcludeSkipValues.value
404404

405405
and: "Response shouldn't contains any error"
406406
assert !bidderStatus.error

0 commit comments

Comments
 (0)