Skip to content

Commit

Permalink
Merge branch 'ci' into UOE-11215
Browse files Browse the repository at this point in the history
  • Loading branch information
pm-priyanka-bagade committed Oct 25, 2024
2 parents 25aa074 + 7048edf commit 7905cdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/pubmatic/openwrap/cache/gocache/partner_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func (c *cache) getActivePartnerConfigAndPopulateWrapperMappings(pubID, profileI
}

if len(partnerConfigMap) == 0 {
c.cache.Set(cacheKey, partnerConfigMap, getSeconds(c.cfg.CacheDefaultExpiry))
return fmt.Errorf("there are no active partners for pubId:%d, profileId:%d, displayVersion:%d", pubID, profileID, displayVersion)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ func Test_cache_getActivePartnerConfigAndPopulateWrapperMappings(t *testing.T) {
displayVersion: testVersionID,
},
want: want{
cacheEntry: false,
cacheEntry: true,
err: fmt.Errorf("there are no active partners for pubId:%d, profileId:%d, displayVersion:%d", testPubID, testProfileID, testVersionID),
},
setup: func() {
Expand Down

0 comments on commit 7905cdf

Please sign in to comment.