chore: increase timeout timers for `TestMonitor` tests (#22726)

pull/22730/head
Dane Strandboge 2021-10-21 14:08:53 -05:00 committed by GitHub
parent 68e2455805
commit 834632d3ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ func TestMonitor_StoreStatistics(t *testing.T) {
defer s.Close()
defer cancel()
timer := time.NewTimer(100 * time.Millisecond)
timer := time.NewTimer(5 * time.Second)
select {
case points := <-ch:
timer.Stop()
@ -345,7 +345,7 @@ func TestMonitor_Expvar(t *testing.T) {
defer cancel()
hostname, _ := os.Hostname()
timer := time.NewTimer(100 * time.Millisecond)
timer := time.NewTimer(5 * time.Second)
select {
case points := <-ch:
timer.Stop()