Skip to content

Commit

Permalink
appeasing rubocop
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Tanaka <[email protected]>
  • Loading branch information
pedro-stanaka committed Dec 18, 2024
1 parent c2aa9cd commit 19064ad
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/environment_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def test_client_from_env_uses_uds_sink_with_correct_packet_size_in_production
"STATSD_ENV" => "production",
"STATSD_SOCKET_PATH" => "/tmp/statsd.sock",
"STATSD_MAX_PACKET_SIZE" => "65507",
"STATSD_USE_NEW_CLIENT" => "1"
"STATSD_USE_NEW_CLIENT" => "1",
)

client = env.client
Expand All @@ -97,16 +97,18 @@ def test_client_from_env_uses_default_packet_size_for_uds_when_not_specified
env = StatsD::Instrument::Environment.new(
"STATSD_ENV" => "production",
"STATSD_SOCKET_PATH" => "/tmp/statsd.sock",
"STATSD_USE_NEW_CLIENT" => "1"
"STATSD_USE_NEW_CLIENT" => "1",
)

client = env.client
sink = client.sink
connection = sink.connection

assert_kind_of(StatsD::Instrument::UdsConnection, connection)
assert_equal(StatsD::Instrument::UdsConnection::DEFAULT_MAX_PACKET_SIZE,
connection.instance_variable_get(:@max_packet_size))
assert_equal(
StatsD::Instrument::UdsConnection::DEFAULT_MAX_PACKET_SIZE,
connection.instance_variable_get(:@max_packet_size),
)
end

def test_client_from_env_uses_batched_uds_sink_with_correct_packet_size
Expand Down

0 comments on commit 19064ad

Please sign in to comment.