Skip to content

Commit a4ac6b6

Browse files
authored
Fix TCF1 Fetcher Fallback (prebid#1438)
1 parent 346617b commit a4ac6b6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

gdpr/vendorlist-fetching.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func newVendorListCache(fallbackVL api.VendorList) (save func(id uint16, list ap
158158
if ok {
159159
return list.(vendorlist.VendorList)
160160
}
161-
return fallbackVL
161+
return nil
162162
}
163163
return
164164
}

gdpr/vendorlist-fetching_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func TestDefaultVendorList(t *testing.T) {
173173
assert.Equal(t, false, vendor.Purpose(2))
174174
}
175175

176-
func TestDefaultVendorListPassthrough(t *testing.T) {
176+
func TestFallbackVendorListPassthrough(t *testing.T) {
177177
firstVendorList := mockVendorListData(t, 1, map[uint16]*purposes{
178178
32: {
179179
purposes: []int{1, 2},
@@ -184,7 +184,7 @@ func TestDefaultVendorListPassthrough(t *testing.T) {
184184
purposes: []int{2},
185185
},
186186
})
187-
server := httptest.NewServer(http.HandlerFunc(mockServer(2, map[int]string{
187+
server := httptest.NewServer(http.HandlerFunc(mockServer(1, map[int]string{
188188
1: firstVendorList,
189189
2: secondVendorList,
190190
})))
@@ -204,7 +204,7 @@ func TestDefaultVendorListPassthrough(t *testing.T) {
204204
assert.Equal(t, true, vendor.Purpose(2))
205205
}
206206

207-
func TestDefaultVendorListNoFetch(t *testing.T) {
207+
func TestFallbackVendorListNoFetch(t *testing.T) {
208208
firstVendorList := mockVendorListData(t, 1, map[uint16]*purposes{
209209
32: {
210210
purposes: []int{1, 2},

0 commit comments

Comments
 (0)