Skip to content

Commit

Permalink
Remove unused param and minor touchup for assert
Browse files Browse the repository at this point in the history
  • Loading branch information
chusitoo committed Dec 17, 2024
1 parent fadff90 commit 2332906
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ext/test/http/curl_http_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ struct GzipEventHandler : public CustomEventHandler
{
~GzipEventHandler() override = default;

void OnResponse(http_client::Response &response) noexcept override {}
void OnResponse(http_client::Response & /* response */) noexcept override {}

void OnEvent(http_client::SessionState state, nostd::string_view reason) noexcept override
{
Expand Down Expand Up @@ -575,7 +575,7 @@ TEST_F(BasicCurlHttpTests, GzipCompressibleData)
session->FinishSession();
ASSERT_TRUE(handler->is_called_);
ASSERT_EQ(handler->state_, http_client::SessionState::Response);
ASSERT_EQ(handler->reason_, "");
ASSERT_TRUE(handler->reason_.empty());

auto http_request =
dynamic_cast<opentelemetry::ext::http::client::curl::Request *>(request.get());
Expand Down Expand Up @@ -623,7 +623,7 @@ TEST_F(BasicCurlHttpTests, GzipIncompressibleData)
session->FinishSession();
ASSERT_TRUE(handler->is_called_);
ASSERT_EQ(handler->state_, http_client::SessionState::Response);
ASSERT_EQ(handler->reason_, "");
ASSERT_TRUE(handler->reason_.empty());

auto http_request =
dynamic_cast<opentelemetry::ext::http::client::curl::Request *>(request.get());
Expand Down

0 comments on commit 2332906

Please sign in to comment.