Skip to content

Commit

Permalink
Fix: rename var name "error" to "err"
Browse files Browse the repository at this point in the history
  • Loading branch information
osazos committed Jul 28, 2021
1 parent 3533b2a commit 81bbdb3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions adapters/adagio/adagio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ func TestMakeRequests_NoGzip(t *testing.T) {
t.Fatalf("Builder returned unexpected error %v", buildErr)
}

requestData, err := bidder.MakeRequests(&fakeBidRequest, nil)
requestData, errs := bidder.MakeRequests(&fakeBidRequest, nil)

assert.Nil(t, err)
assert.Nil(t, errs)
assert.Equal(t, 1, len(requestData))

body := &openrtb2.BidRequest{}
error := json.Unmarshal(requestData[0].Body, body)
assert.NoError(t, error, "Request body unmarshalling error should be nil")
err := json.Unmarshal(requestData[0].Body, body)
assert.NoError(t, err, "Request body unmarshalling error should be nil")
assert.Equal(t, 1, len(body.Imp))
}

Expand Down

0 comments on commit 81bbdb3

Please sign in to comment.