Skip to content

Commit

Permalink
👎
Browse files Browse the repository at this point in the history
  • Loading branch information
alanwest committed Sep 1, 2022
1 parent 65fd1ee commit 3688d7e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,15 @@ public void SumNonMonotonicDouble()

var counter = meter.CreateUpDownCounter<double>("test_updown_counter");
counter.Add(10);
counter.Add(-5);
counter.Add(-11);

provider.ForceFlush();

var cursor = PrometheusSerializer.WriteMetric(buffer, 0, metrics[0]);
Assert.Matches(
("^"
+ "# TYPE test_updown_counter gauge\n"
+ "test_updown_counter 5 \\d+\n"
+ "test_updown_counter -1 \\d+\n"
+ "$").Replace('\'', '"'),
Encoding.UTF8.GetString(buffer, 0, cursor));
}
Expand Down

0 comments on commit 3688d7e

Please sign in to comment.