membphis commented on a change in pull request #979:
URL: https://github.com/apache/apisix-dashboard/pull/979#discussion_r544886384



##########
File path: api/test/e2e/route_online_debug_test.go
##########
@@ -42,7 +42,7 @@ func TestRoute_Online_Debug_Route_Not_Exist(t *testing.T) {
                testCaseCheck(tc)
        }
        basepath := 
"http://127.0.0.1:9000/apisix/admin/debug-request-forwarding";
-       request, _ := http.NewRequest("POST", basepath, 
strings.NewReader(`{"url": "http://172.16.238.30:9080/hello_","method": 
"GET"}`))
+       request, _ := http.NewRequest("POST", basepath, 
strings.NewReader(`{"url": "http://172.16.238.30:9080/hello_","method": 
"GET","protocol": "http"}`))

Review comment:
       > maybe define `http://172.16.238.30` as a global constant or variable 
is the first step.
   
   yes, that is a better way




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to