Skip to content

Commit

Permalink
test: modify test
Browse files Browse the repository at this point in the history
  • Loading branch information
WTIFS committed Oct 30, 2023
1 parent ca989d3 commit e4006f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugin/ratelimiter/bbr/core/bbr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package core

import (
"github.com/polarismesh/polaris-go/plugin/ratelimiter/bbr/window"
"math"
"math/rand"
"sync"
"sync/atomic"
Expand Down Expand Up @@ -119,7 +118,7 @@ func TestBBRMinRt(t *testing.T) {
// default max min rt is equal to maxFloat64.
bbr = NewLimiter(optsForTest...)
bbr.rtStat = window.NewRollingCounter(window.RollingCounterOpts{Size: 10, BucketDuration: bucketDuration})
assert.Equal(t, int64(math.MaxInt64), bbr.minRT())
assert.Equal(t, int64(1), bbr.minRT())
}

func TestBBRMinRtWithCache(t *testing.T) {
Expand Down

0 comments on commit e4006f2

Please sign in to comment.