We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca989d3 commit e4006f2Copy full SHA for e4006f2
plugin/ratelimiter/bbr/core/bbr_test.go
@@ -2,7 +2,6 @@ package core
2
3
import (
4
"github.com/polarismesh/polaris-go/plugin/ratelimiter/bbr/window"
5
- "math"
6
"math/rand"
7
"sync"
8
"sync/atomic"
@@ -119,7 +118,7 @@ func TestBBRMinRt(t *testing.T) {
119
118
// default max min rt is equal to maxFloat64.
120
bbr = NewLimiter(optsForTest...)
121
bbr.rtStat = window.NewRollingCounter(window.RollingCounterOpts{Size: 10, BucketDuration: bucketDuration})
122
- assert.Equal(t, int64(math.MaxInt64), bbr.minRT())
+ assert.Equal(t, int64(1), bbr.minRT())
123
}
124
125
func TestBBRMinRtWithCache(t *testing.T) {
0 commit comments