Skip to content

Commit 71489d1

Browse files
committed
e2e: add delay duration for monitor case
1 parent 85aa3df commit 71489d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: test/e2e/features/monitor.go

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package features
33
import (
44
"fmt"
55
"strings"
6+
"time"
67

78
"github.com/fatedier/frp/pkg/util/log"
89
"github.com/fatedier/frp/test/e2e/framework"
@@ -35,6 +36,7 @@ var _ = Describe("[Feature: Monitor]", func() {
3536
f.RunProcesses([]string{serverConf}, []string{clientConf})
3637

3738
framework.NewRequestExpect(f).Port(remotePort).Ensure()
39+
time.Sleep(500 * time.Millisecond)
3840

3941
framework.NewRequestExpect(f).RequestModify(func(r *request.Request) {
4042
r.HTTP().Port(dashboardPort).HTTPPath("/metrics")

0 commit comments

Comments
 (0)