Skip to content

Commit

Permalink
http proxy test with less uri
Browse files Browse the repository at this point in the history
  • Loading branch information
luominggang committed Mar 5, 2019
1 parent 40d5b95 commit c37885a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestHTTPProxy(t *testing.T) {
defer wg.Done()
for req := range requests {
suffix := "test" + strconv.Itoa(req)
resp, err := proxyClient.Get("http://test.domain/tst/" + suffix)
resp, err := proxyClient.Get("http://test.domain/tst/test?index=" + suffix)
if err != nil {
continue
}
Expand Down Expand Up @@ -91,8 +91,8 @@ func TestRpcToHTTPProxy(t *testing.T) {
defer wg.Done()
for req := range requests {
suffix := "test" + strconv.Itoa(req)
request := client.BuildRequest("/tst/"+suffix, nil)
request.SetAttachment(mhttp.Method, "POST")
request := client.BuildRequest("/tst/test", []interface{}{map[string]string{"index=": suffix}})
request.SetAttachment(mhttp.Method, "GET")
var reply []byte
client.BaseCall(request, &reply)
if !strings.HasSuffix(string(reply), suffix) {
Expand Down

0 comments on commit c37885a

Please sign in to comment.