Skip to content

Commit 15cdd97

Browse files
committed
Update targeting
1 parent 1f171a9 commit 15cdd97

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

src/test/groovy/org/prebid/server/functional/tests/BidAdjustmentSpec.groovy

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,10 @@ class BidAdjustmentSpec extends BaseSpec {
211211
def currency = USD
212212
def impPrice = PBSUtils.randomPrice
213213
def rule = new BidAdjustmentRule(generic: [(WILDCARD): [new AdjustmentRule(adjustmentType: adjustmentType, value: ruleValue, currency: currency)]])
214-
def bidRequest = BidRequest.defaultBidRequest.tap {
215-
ext.prebid.bidAdjustments = BidAdjustment.getDefaultWithSingleMediaTypeRule(mediaType, rule)
216-
cur = [currency]
217-
imp.first.bidFloor = impPrice
218-
imp.first.bidFloorCur = currency
219-
}
214+
bidRequest.ext.prebid.bidAdjustments = BidAdjustment.getDefaultWithSingleMediaTypeRule(mediaType, rule)
215+
bidRequest.cur = [currency]
216+
bidRequest.imp.first.bidFloor = impPrice
217+
bidRequest.imp.first.bidFloorCur = currency
220218

221219
and: "Default bid response"
222220
def originalPrice = PBSUtils.randomPrice

0 commit comments

Comments
 (0)