Skip to content

Commit

Permalink
fix: Use future dates for the in process create a population measurem…
Browse files Browse the repository at this point in the history
…ent test. (#1987)
  • Loading branch information
ple13 authored Jan 3, 2025
1 parent 2d44945 commit 5f17f9a
Showing 1 changed file with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

package org.wfanet.measurement.integration.common

import com.google.type.date
import java.time.Instant
import java.time.LocalDate
import kotlinx.coroutines.runBlocking
import org.junit.After
import org.junit.Before
Expand Down Expand Up @@ -48,6 +48,7 @@ import org.wfanet.measurement.api.v2alpha.modelRollout
import org.wfanet.measurement.api.v2alpha.modelSuite
import org.wfanet.measurement.common.identity.withPrincipalName
import org.wfanet.measurement.common.testing.ProviderRule
import org.wfanet.measurement.common.toProtoDate
import org.wfanet.measurement.common.toProtoTime
import org.wfanet.measurement.kingdom.deploy.common.service.DataServices
import org.wfanet.measurement.loadtest.measurementconsumer.MeasurementConsumerData
Expand Down Expand Up @@ -322,17 +323,9 @@ abstract class InProcessLifeOfAMeasurementIntegrationTest(
private const val DEFAULT_POPULATION_FILTER_EXPRESSION =
"person.age_group == ${Person.AgeGroup.YEARS_18_TO_34_VALUE}"

private val ROLLOUT_PERIOD_START_DATE = date {
year = 2025
month = 1
day = 2
}
private val ROLLOUT_PERIOD_START_DATE = LocalDate.now().plusDays(10).toProtoDate()

private val ROLLOUT_PERIOD_END_DATE = date {
year = 2025
month = 1
day = 3
}
private val ROLLOUT_PERIOD_END_DATE = LocalDate.now().plusDays(20).toProtoDate()

@BeforeClass
@JvmStatic
Expand Down

0 comments on commit 5f17f9a

Please sign in to comment.