Skip to content

Commit a4db5fc

Browse files
committed
fix tests
1 parent eff2ead commit a4db5fc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/test/groovy/org/prebid/server/functional/tests/module/optabletargeting/CacheStorageSpec.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.prebid.server.functional.tests.module.optabletargeting
22

3+
import org.apache.commons.codec.binary.Base64
34
import org.prebid.server.functional.model.config.AccountConfig
45
import org.prebid.server.functional.model.config.AccountHooksConfiguration
56
import org.prebid.server.functional.model.config.IdentifierType
@@ -132,7 +133,7 @@ class CacheStorageSpec extends ModuleBaseSpec {
132133

133134
then: "PBS should update metrics for new saved text storage cache"
134135
def metrics = prebidServerStoredCacheService.sendCollectedMetricsRequest()
135-
assert metrics[METRIC_CREATIVE_SIZE_TEXT] == encodeBase64(encode(targetingResult).bytes).size()
136+
assert metrics[METRIC_CREATIVE_SIZE_TEXT] == new String(encodeBase64(encode(targetingResult).bytes)).size()
136137
assert metrics[METRIC_CREATIVE_TTL_TEXT] == targetingConfig.cache.ttlSeconds
137138
assert metrics[METRIC_CREATIVE_WRITE_OK] == 1
138139
}
@@ -186,6 +187,7 @@ class CacheStorageSpec extends ModuleBaseSpec {
186187
it.device = new Device(geo: Geo.FPDGeo,
187188
ip: PBSUtils.getRandomEnum(PublicCountryIp.class).v4,
188189
ifa: ifa,
190+
ua: PBSUtils.randomString,
189191
os: os)
190192
}
191193
}

0 commit comments

Comments
 (0)