fix typo: maxQps -> maxInflight

pull/105/head
程飞 6 years ago
parent 8737c5014d
commit b9580ace79
  1. 4
      pkg/ratelimit/bbr/bbr_test.go

@ -90,7 +90,7 @@ func TestBBRMinRt(t *testing.T) {
assert.Equal(t, int64(math.Ceil(math.MaxFloat64)), bbr.minRT()) assert.Equal(t, int64(math.Ceil(math.MaxFloat64)), bbr.minRT())
} }
func TestBBRMaxQps(t *testing.T) { func TestBBRMaxInflight(t *testing.T) {
bucketDuration := time.Millisecond * 100 bucketDuration := time.Millisecond * 100
passStat := metric.NewRollingCounter(metric.RollingCounterOpts{Size: 10, BucketDuration: bucketDuration}) passStat := metric.NewRollingCounter(metric.RollingCounterOpts{Size: 10, BucketDuration: bucketDuration})
rtStat := metric.NewRollingGauge(metric.RollingGaugeOpts{Size: 10, BucketDuration: bucketDuration}) rtStat := metric.NewRollingGauge(metric.RollingGaugeOpts{Size: 10, BucketDuration: bucketDuration})
@ -108,7 +108,7 @@ func TestBBRMaxQps(t *testing.T) {
rtStat: rtStat, rtStat: rtStat,
winBucketPerSec: 10, winBucketPerSec: 10,
} }
assert.Equal(t, int64(60), bbr.maxQPS()) assert.Equal(t, int64(60), bbr.maxFlight())
} }
func TestBBRShouldDrop(t *testing.T) { func TestBBRShouldDrop(t *testing.T) {

Loading…
Cancel
Save