mirror of
https://github.com/go-kratos/kratos.git
synced 2025-03-17 21:07:54 +02:00
bump to 150ms
This commit is contained in:
parent
34e5348c4a
commit
7bd03eae43
@ -137,8 +137,8 @@ func TestBalancerDone(t *testing.T) {
|
||||
|
||||
latency, count := picker.(*wrrPicker).subConns[0].latencySummary()
|
||||
expectLatency := float64(100*time.Millisecond) / 1e5
|
||||
if latency < expectLatency || latency > (expectLatency+100) {
|
||||
t.Fatalf("latency is less than 100ms or greater than 110ms, %f", latency)
|
||||
if latency < expectLatency || latency > (expectLatency+500) {
|
||||
t.Fatalf("latency is less than 100ms or greater than 150ms, %f", latency)
|
||||
}
|
||||
assert.Equal(t, int64(1), count)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user