Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
andresilveirah committed Sep 26, 2024
1 parent a941534 commit 8f108bd
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -358,13 +358,13 @@ class CampaignManagerImplTest {
fun resets_usnatSampled_when_usnatSampleRate_changes() {
dataStorage.usnatSampleRate = 1.0
dataStorage.usnatSampled = true
val newRate = 0.5f
val newRate = 0.5
campaignManager.handleMetaDataResponse(
MetaDataResponse(
gdpr = null,
usnat = MetaDataResponse.MetaDataResponseUSNat(
applies = false,
sampleRate = newRate,
sampleRate = newRate.toFloat(),
additionsChangeDate = "",
applicableSections = emptyList(),
vendorListId = ""
Expand All @@ -380,13 +380,13 @@ class CampaignManagerImplTest {
fun calls_pvData_if_sampled_true() {
dataStorage.usnatSampleRate = 1.0
dataStorage.usnatSampled = true
val newRate = 0.5f
val newRate = 0.5
campaignManager.handleMetaDataResponse(
MetaDataResponse(
gdpr = null,
usnat = MetaDataResponse.MetaDataResponseUSNat(
applies = false,
sampleRate = newRate,
sampleRate = newRate.toFloat(),
additionsChangeDate = "",
applicableSections = emptyList(),
vendorListId = ""
Expand Down

0 comments on commit 8f108bd

Please sign in to comment.