Skip to content

Commit 9f2ea21

Browse files
carsonipmergify[bot]
authored andcommitted
test: Fix main_test TestMonitoring (#20698)
(cherry picked from commit f79047a)
1 parent ba9722a commit 9f2ea21

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

x-pack/apm-server/main_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"github.com/elastic/apm-server/internal/elasticsearch"
2828
)
2929

30-
func TestMonitoring(t *testing.T) {
30+
func TestMainMonitoring(t *testing.T) {
3131
home := t.TempDir()
3232
err := paths.InitPaths(&paths.Path{Home: home})
3333
require.NoError(t, err)
@@ -63,7 +63,7 @@ func TestMonitoring(t *testing.T) {
6363
"apm-server.sampling.tail.storage.disk_total",
6464
"apm-server.sampling.tail.storage.disk_usage_threshold_pct",
6565
})
66-
}, time.Second, 10*time.Millisecond)
66+
}, 2*time.Second, 20*time.Millisecond) // waitFor has to be greater than diskUsageFetchInterval
6767

6868
return runServerError
6969
}

0 commit comments

Comments
 (0)