Skip to content

Commit

Permalink
test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
vishramachandran committed Nov 6, 2024
1 parent 3a3f01e commit 5907de1
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import org.scalatest.matchers.should.Matchers
class InputRecordBuilderSpec extends AnyFunSpec with Matchers {
val builder = new RecordBuilder(MemFactory.onHeapFactory)
val builder2 = new RecordBuilder(MemFactory.onHeapFactory)
val builder3 = new RecordBuilder(MemFactory.onHeapFactory)

val baseTags = Map("dataset" -> "timeseries",
"host" -> "MacBook-Pro-229.local",
Expand Down Expand Up @@ -110,9 +111,9 @@ class InputRecordBuilderSpec extends AnyFunSpec with Matchers {
val more = Seq("posBucketOffset" -> bucketScheme.startIndexPositiveBuckets.toDouble,
"scale" -> bucketScheme.scale.toDouble)

InputRecord.writeOtelExponentialHistRecord(builder2, metric, baseTags, 100000L,
InputRecord.writeOtelExponentialHistRecord(builder3, metric, baseTags, 100000L,
bucketKVs ++ sumCountMinMaxKVs ++ more, isDelta = true)
builder2.allContainers.head.iterate(Schemas.otelDeltaHistogram.ingestionSchema).foreach { row =>
builder3.allContainers.head.iterate(Schemas.otelDeltaHistogram.ingestionSchema).foreach { row =>
row.getDouble(1) shouldEqual sum
row.getDouble(2) shouldEqual count
row.getDouble(4) shouldEqual min
Expand Down

0 comments on commit 5907de1

Please sign in to comment.