Skip to content

Commit

Permalink
More format in test code
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomsonTan committed Jun 29, 2022
1 parent 92bd7f4 commit adb7024
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions exporters/otlp/test/otlp_http_exporter_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,7 @@ TEST_F(OtlpHttpExporterTestPeer, ExportBinaryIntegrationTest)
opentelemetry::proto::collector::trace::v1::ExportTraceServiceRequest request_body;
request_body.ParseFromArray(&mock_session->GetRequest()->body_[0],
static_cast<int>(mock_session->GetRequest()->body_.size()));
auto received_trace_id =
request_body.resource_spans(0).scope_spans(0).spans(0).trace_id();
auto received_trace_id = request_body.resource_spans(0).scope_spans(0).spans(0).trace_id();
EXPECT_EQ(received_trace_id, report_trace_id);

auto custom_header = mock_session->GetRequest()->headers_.find("Custom-Header-Key");
Expand Down

0 comments on commit adb7024

Please sign in to comment.