Skip to content
This repository was archived by the owner on Jun 14, 2023. It is now read-only.

Commit 38c3b84

Browse files
authored
Update e2e test codes for passing percentile verify (#75)
1 parent 5ff73ea commit 38c3b84

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/e2e/example-server/main.go

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import (
2222
"io/ioutil"
2323
"log"
2424
"net/http"
25+
"time"
2526

2627
"github.com/SkyAPM/go2sky"
2728
httpPlugin "github.com/SkyAPM/go2sky/plugins/http"
@@ -47,6 +48,8 @@ func init() {
4748
}
4849

4950
func ServerHTTP(writer http.ResponseWriter, request *http.Request) {
51+
time.Sleep(time.Duration(500) * time.Millisecond)
52+
5053
clientReq, err := http.NewRequest(http.MethodPost, upstreamURL, nil)
5154
if err != nil {
5255
writer.WriteHeader(http.StatusInternalServerError)

0 commit comments

Comments
 (0)