Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions endpoints/openrtb2/auction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4041,7 +4041,7 @@ func TestParseRequestMergeBidderParams(t *testing.T) {

req := httptest.NewRequest("POST", "/openrtb2/auction", strings.NewReader(test.givenRequestBody))

resReq, _, _, _, _, _, errL := deps.parseRequest(req, &metrics.Labels{}, hookExecutor)
resReq, _, _, _, _, _, _, errL := deps.parseRequest(req, &metrics.Labels{}, hookExecutor)

assert.NoError(t, resReq.RebuildRequest())

Expand Down Expand Up @@ -4147,7 +4147,7 @@ func TestParseRequestStoredResponses(t *testing.T) {

req := httptest.NewRequest("POST", "/openrtb2/auction", strings.NewReader(test.givenRequestBody))

_, _, storedResponses, _, _, _, errL := deps.parseRequest(req, &metrics.Labels{}, hookExecutor)
_, _, storedResponses, _, _, _, _, errL := deps.parseRequest(req, &metrics.Labels{}, hookExecutor)

if test.expectedErrorCount == 0 {
assert.Equal(t, test.expectedStoredResponses, storedResponses, "stored responses should match")
Expand Down Expand Up @@ -4259,7 +4259,7 @@ func TestParseRequestStoredBidResponses(t *testing.T) {
hookExecutor := hookexecution.NewHookExecutor(deps.hookExecutionPlanBuilder, hookexecution.EndpointAuction, deps.metricsEngine)

req := httptest.NewRequest("POST", "/openrtb2/auction", strings.NewReader(test.givenRequestBody))
_, _, _, storedBidResponses, _, _, errL := deps.parseRequest(req, &metrics.Labels{}, hookExecutor)
_, _, _, storedBidResponses, _, _, _, errL := deps.parseRequest(req, &metrics.Labels{}, hookExecutor)
if test.expectedErrorCount == 0 {
assert.Empty(t, errL)
assert.Equal(t, test.expectedStoredBidResponses, storedBidResponses, "stored responses should match")
Expand Down Expand Up @@ -5121,7 +5121,7 @@ func TestParseRequestMultiBid(t *testing.T) {

req := httptest.NewRequest("POST", "/openrtb2/auction", strings.NewReader(test.givenRequestBody))

resReq, _, _, _, _, _, errL := deps.parseRequest(req, &metrics.Labels{}, hookExecutor)
resReq, _, _, _, _, _, _, errL := deps.parseRequest(req, &metrics.Labels{}, hookExecutor)

assert.NoError(t, resReq.RebuildRequest())

Expand Down