Skip to content

Commit 0e28559

Browse files
Fix formatting issue
1 parent 4dad8b4 commit 0e28559

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/pubmatic/openwrap/beforevalidationhook_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4239,7 +4239,7 @@ func TestOpenWrapHandleBeforeValidationHook(t *testing.T) {
42394239
models.DisplayVersionID: "1",
42404240
},
42414241
}, nil)
4242-
mockCache.EXPECT().GetThrottlePartnersWithCriteria(gomock.Any()).Return(map[string]struct{}{"pubmatic": struct{}{}}, nil)
4242+
mockCache.EXPECT().GetThrottlePartnersWithCriteria(gomock.Any()).Return(map[string]struct{}{"pubmatic": {}}, nil)
42434243
//prometheus metrics
42444244
mockEngine.EXPECT().RecordPublisherProfileRequests("5890", "1234")
42454245
mockEngine.EXPECT().RecordBadRequests(rctx.Endpoint, rctx.PubIDStr, getPubmaticErrorCode(nbr.InvalidPlatform))
@@ -4289,7 +4289,7 @@ func TestOpenWrapHandleBeforeValidationHook(t *testing.T) {
42894289
models.PLATFORM_KEY: models.PLATFORM_APP,
42904290
},
42914291
}, nil)
4292-
mockCache.EXPECT().GetThrottlePartnersWithCriteria(gomock.Any()).Return(map[string]struct{}{"appnexus": struct{}{}}, nil)
4292+
mockCache.EXPECT().GetThrottlePartnersWithCriteria(gomock.Any()).Return(map[string]struct{}{"appnexus": {}}, nil)
42934293
//prometheus metrics
42944294
mockEngine.EXPECT().RecordPublisherProfileRequests("5890", "1234")
42954295
mockEngine.EXPECT().RecordPartnerThrottledRequests("5890", "appnexus", models.PartnerLevelThrottlingFeatureID)

0 commit comments

Comments
 (0)