Skip to content

Commit

Permalink
fix(test): cherry-pick fix for aggregated temporal queries test
Browse files Browse the repository at this point in the history
  • Loading branch information
bobeal committed Jan 2, 2024
1 parent f54f1c1 commit fd8f7f1
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,13 @@ class AggregatedQueryServiceTests : WithTimescaleContainer, WithKafkaContainer {
}

val temporalEntitiesQuery = createTemporalEntitiesQuery("avg", aggrPeriodDuration)
attributeInstanceService.search(temporalEntitiesQuery, temporalEntityAttribute, startTimestamp)
attributeInstanceService.search(
temporalEntitiesQuery.copy(
temporalQuery = temporalEntitiesQuery.temporalQuery.copy(timeAt = startTimestamp)
),
temporalEntityAttribute,
startTimestamp
)
.shouldSucceedWith { results ->
assertEquals(expectedNumberOfBuckets, results.size)
}
Expand Down

0 comments on commit fd8f7f1

Please sign in to comment.