Skip to content

Commit

Permalink
fix BucketCountSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
pvlugter authored Jan 16, 2025
1 parent 0fc7dfa commit 6d42d01
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class BucketCountSpec
.countBuckets(entityType, 0, persistenceExt.numberOfSlices - 1, startTime, limit)
.futureValue
withClue(s"startTime $startTime ($bucketStartTime): ") {
buckets.size shouldBe 1
buckets.size shouldBe 11
buckets.head.startTime shouldBe bucketStartTime
// the toTimestamp of the sql query is one bucket more than fromTimestamp + (limit * BucketDurationSeconds)
buckets.last.startTime shouldBe (bucketStartTime + (limit + 1) * Buckets.BucketDurationSeconds)
Expand Down

0 comments on commit 6d42d01

Please sign in to comment.