Skip to content

Commit

Permalink
pinpoint-apm#329 added hostname modification to Annotation checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Xylus committed Jun 1, 2015
1 parent 7bbe63e commit dc3545b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void verifyTraces(PluginTestVerifier verifier, String expectedMessage) th
// SpanEvent - TAsyncMethodCall.doWritingRequestBody
Method doWritingRequestBody = TAsyncMethodCall.class.getDeclaredMethod("doWritingRequestBody", SelectionKey.class);
ExpectedAnnotation thriftUrl = ExpectedAnnotation.annotation(
"thrift.url", SERVER_IP + ":" + SERVER_PORT + "/com/navercorp/pinpoint/plugin/thrift/dto/EchoService/echo_call");
"thrift.url", SERVER_ADDRESS.getHostName() + ":" + SERVER_ADDRESS.getPort() + "/com/navercorp/pinpoint/plugin/thrift/dto/EchoService/echo_call");
verifier.verifyTraceBlock(
BlockType.EVENT, // BlockType
"THRIFT_CLIENT", // ServiceType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void verifyTraces(PluginTestVerifier verifier, String expectedMessage) th
Method sendBase = TServiceClient.class.getDeclaredMethod("sendBase", String.class, TBase.class);
// refer to com.navercorp.pinpoint.plugin.thrift.ThriftUtils#getClientServiceName
ExpectedAnnotation thriftUrl = ExpectedAnnotation.annotation("thrift.url",
SERVER_IP + ":" + SERVER_PORT + "/com/navercorp/pinpoint/plugin/thrift/dto/EchoService/echo");
SERVER_ADDRESS.getHostName() + ":" + SERVER_ADDRESS.getPort() + "/com/navercorp/pinpoint/plugin/thrift/dto/EchoService/echo");
ExpectedAnnotation thriftArgs = ExpectedAnnotation.annotation("thrift.args", "echo_args(message:" + expectedMessage + ")");
verifier.verifyTraceBlock(
BlockType.EVENT, // BlockType
Expand Down

0 comments on commit dc3545b

Please sign in to comment.