Skip to content

Commit e4006f2

Browse files
committed
test: modify test
1 parent ca989d3 commit e4006f2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugin/ratelimiter/bbr/core/bbr_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package core
22

33
import (
44
"github.com/polarismesh/polaris-go/plugin/ratelimiter/bbr/window"
5-
"math"
65
"math/rand"
76
"sync"
87
"sync/atomic"
@@ -119,7 +118,7 @@ func TestBBRMinRt(t *testing.T) {
119118
// default max min rt is equal to maxFloat64.
120119
bbr = NewLimiter(optsForTest...)
121120
bbr.rtStat = window.NewRollingCounter(window.RollingCounterOpts{Size: 10, BucketDuration: bucketDuration})
122-
assert.Equal(t, int64(math.MaxInt64), bbr.minRT())
121+
assert.Equal(t, int64(1), bbr.minRT())
123122
}
124123

125124
func TestBBRMinRtWithCache(t *testing.T) {

0 commit comments

Comments
 (0)