Skip to content

Commit 907faed

Browse files
author
Mariusz Cyranowski
committed
fixes concurency test for summary metric
1 parent 50a40f9 commit 907faed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prometheus-net.sharedtests/SummaryTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public void TestSummaryConcurrency([Range(0, 1000000, 10000)] int n)
1818
{
1919
var random = new Random(42);
2020
var mutations = n%10000 + 10000;
21-
var concLevel = n%5 + 1;
21+
var concLevel = (n / 10000) % 5 + 1;
2222
var total = mutations * concLevel;
2323

2424
var sum = new Summary("test_summary", "helpless", new string[0]);

0 commit comments

Comments
 (0)