From 71489d194ca8381688581ab284304e3fb5c648e4 Mon Sep 17 00:00:00 2001 From: fatedier Date: Mon, 25 Oct 2021 20:27:22 +0800 Subject: [PATCH] e2e: add delay duration for monitor case --- test/e2e/features/monitor.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/e2e/features/monitor.go b/test/e2e/features/monitor.go index 424195c..d8b656a 100644 --- a/test/e2e/features/monitor.go +++ b/test/e2e/features/monitor.go @@ -3,6 +3,7 @@ package features import ( "fmt" "strings" + "time" "github.com/fatedier/frp/pkg/util/log" "github.com/fatedier/frp/test/e2e/framework" @@ -35,6 +36,7 @@ var _ = Describe("[Feature: Monitor]", func() { f.RunProcesses([]string{serverConf}, []string{clientConf}) framework.NewRequestExpect(f).Port(remotePort).Ensure() + time.Sleep(500 * time.Millisecond) framework.NewRequestExpect(f).RequestModify(func(r *request.Request) { r.HTTP().Port(dashboardPort).HTTPPath("/metrics")