Merge pull request #2987 from taosdata/hotfix/sangshuduo/fix-opentsdb-test-ip

fix hard code ip in query code.
This commit is contained in:
Shengliang Guan 2020-08-09 13:08:16 +08:00 committed by GitHub
commit 69242440d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -198,7 +198,7 @@ public class OpentsdbTest{
case "q2":
//count
startTime = System.currentTimeMillis();
get_url = "http://192.168.1.114:4242/api/query?";
get_url = "http://127.0.0.1:4242/api/query?";
httpPost = new HttpPost(get_url);
qjson = " {\n" +
" \"start\": 1563249700,\n" +
@ -351,7 +351,7 @@ public class OpentsdbTest{
break;
case "q3":
startTime = System.currentTimeMillis();
get_url = "http://192.168.1.114:4242/api/query?";
get_url = "http://127.0.0.1:4242/api/query?";
httpPost = new HttpPost(get_url);
qjson = " {\n" +
" \"start\": 1563249700,\n" +
@ -411,7 +411,7 @@ public class OpentsdbTest{
break;
case "q4":
startTime = System.currentTimeMillis();
get_url = "http://192.168.1.114:4242/api/query?";
get_url = "http://127.0.0.1:4242/api/query?";
httpPost = new HttpPost(get_url);
qjson = " {\n" +
" \"start\": 1563249700,\n" +