Skip to content

Commit

Permalink
Warning codes iota bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Veronika Solovei committed Mar 2, 2021
1 parent 340f9f5 commit 60596aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion endpoints/openrtb2/amp_auction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ func TestInvalidConsent(t *testing.T) {
expectedWarnings := map[openrtb_ext.BidderName][]openrtb_ext.ExtBidderError{
openrtb_ext.BidderReservedGeneral: {
{
Code: 10001,
Code: 10000,
Message: "Consent '" + invalidConsent + "' is not recognized as either CCPA or GDPR TCF.",
},
},
Expand Down
3 changes: 2 additions & 1 deletion errortypes/code.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ const (

// Defines numeric codes for well-known warnings.
const (
UnknownWarningCode = 10999
InvalidPrivacyConsentWarningCode = iota + 10000
AccountLevelDebugDisabledWarningCode
BidderLevelDebugDisabledWarningCode

UnknownWarningCode = 10999
)

// Coder provides an error or warning code with severity.
Expand Down

0 comments on commit 60596aa

Please sign in to comment.