Skip to content

Commit

Permalink
Code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
VeronikaSolovei9 committed Jan 9, 2024
1 parent 28396f8 commit d409cf5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions hooks/hookexecution/execution_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

const (
testIpv6 = "1111:2222:3333:4444:5555:6666:7777:8888"
testIPv6Scubbed = "1111:2222::"
testIPv6Scrubbed = "1111:2222::"
testIPv6ScrubBytes = 32
)

Expand Down Expand Up @@ -66,7 +66,7 @@ func TestHandleModuleActivitiesBidderRequestPayload(t *testing.T) {
privacyConfig: getTransmitPreciseGeoActivityConfig("foo", false),
expectedPayloadData: hookstage.BidderRequestPayload{
Request: &openrtb_ext.RequestWrapper{BidRequest: &openrtb2.BidRequest{
Device: &openrtb2.Device{IPv6: testIPv6Scubbed},
Device: &openrtb2.Device{IPv6: testIPv6Scrubbed},
},
}},
},
Expand Down Expand Up @@ -150,7 +150,7 @@ func TestHandleModuleActivitiesProcessedAuctionRequestPayload(t *testing.T) {
privacyConfig: getTransmitPreciseGeoActivityConfig("foo", false),
expectedPayloadData: hookstage.ProcessedAuctionRequestPayload{
Request: &openrtb_ext.RequestWrapper{BidRequest: &openrtb2.BidRequest{
Device: &openrtb2.Device{IPv6: testIPv6Scubbed},
Device: &openrtb2.Device{IPv6: testIPv6Scrubbed},
}},
},
},
Expand Down Expand Up @@ -193,7 +193,7 @@ func TestHandleModuleActivitiesNoBidderRequestPayload(t *testing.T) {
expectedPayloadData hookstage.RawAuctionRequestPayload
}{
{
description: "payload should change when userFPD is blocked by activity",
description: "payload should not change when userFPD is blocked by activity",
hookCode: "foo",
inPayloadData: hookstage.RawAuctionRequestPayload{},
privacyConfig: getTransmitUFPDActivityConfig("foo", false),
Expand All @@ -207,7 +207,7 @@ func TestHandleModuleActivitiesNoBidderRequestPayload(t *testing.T) {
expectedPayloadData: hookstage.RawAuctionRequestPayload{},
},
{
description: "payload should change when transmitPreciseGeo is blocked by activity",
description: "payload should not change when transmitPreciseGeo is blocked by activity",
hookCode: "foo",
inPayloadData: hookstage.RawAuctionRequestPayload{},
privacyConfig: getTransmitPreciseGeoActivityConfig("foo", false),
Expand Down
2 changes: 1 addition & 1 deletion hooks/hookexecution/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ func TestExecuteRawAuctionStage(t *testing.T) {

func TestExecuteProcessedAuctionStage(t *testing.T) {
foobarModuleCtx := &moduleContexts{ctxs: map[string]hookstage.ModuleContext{"foobar": nil}}
account := &config.Account{Privacy: config.AccountPrivacy{}}
account := &config.Account{}
req := openrtb2.BidRequest{ID: "some-id", User: &openrtb2.User{ID: "user-id"}}
reqUpdated := openrtb2.BidRequest{ID: "some-id", User: &openrtb2.User{ID: "user-id", Yob: 2000, Consent: "true"}}

Expand Down

0 comments on commit d409cf5

Please sign in to comment.