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

Commit

Permalink
Update e2e test codes for passing percentile verify (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
Humbertzhang authored Oct 25, 2020
1 parent 5ff73ea commit 38c3b84
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/e2e/example-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"io/ioutil"
"log"
"net/http"
"time"

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

func ServerHTTP(writer http.ResponseWriter, request *http.Request) {
time.Sleep(time.Duration(500) * time.Millisecond)

clientReq, err := http.NewRequest(http.MethodPost, upstreamURL, nil)
if err != nil {
writer.WriteHeader(http.StatusInternalServerError)
Expand Down

0 comments on commit 38c3b84

Please sign in to comment.