Skip to content

Commit

Permalink
fix the range (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
otherview authored May 24, 2024
1 parent b9047c0 commit 90df86d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metrics/prometheus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ func TestPromMetrics(t *testing.T) {
}

totalCountVec := 0
randCountVec := rand.Intn(100) + 1
randCountVec := rand.Intn(100) + 2
for i := 0; i < randCountVec; i++ {
zeroOrOne := i % 2
countVect.AddWithLabel(int64(i), map[string]string{"zeroOrOne": strconv.Itoa(zeroOrOne)})
totalCountVec += i
}

totalGaugeVec := 0
randGaugeVec := rand.Intn(100) + 1
randGaugeVec := rand.Intn(100) + 2
for i := 0; i < randGaugeVec; i++ {
zeroOrOne := i % 2
gaugeVec.GaugeWithLabel(int64(i), map[string]string{"zeroOrOne": strconv.Itoa(zeroOrOne)})
Expand Down

0 comments on commit 90df86d

Please sign in to comment.