Skip to content

Commit 71b0483

Browse files
committed
rubocop
1 parent 79aaa1e commit 71b0483

File tree

5 files changed

+0
-27
lines changed

5 files changed

+0
-27
lines changed

test/new_relic/agent/external_test.rb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,6 @@ def teardown
2424

2525
# --- process_request_metadata
2626

27-
28-
29-
30-
31-
32-
33-
34-
35-
36-
3727
def test_process_request_metadata_cross_app_disabled
3828
with_config(cat_config.merge(:'cross_application_tracer.enabled' => false)) do
3929
rmd = @obfuscator.obfuscate(::JSON.dump({
@@ -53,9 +43,6 @@ def test_process_request_metadata_cross_app_disabled
5343

5444
# --- get_response_metadata
5545

56-
57-
58-
5946
# ---
6047

6148
def cat_config

test/new_relic/agent/messaging_test.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -442,10 +442,6 @@ def test_segment_records_proper_metrics_for_consume
442442
]
443443
end
444444

445-
446-
447-
448-
449445
def obfuscator
450446
NewRelic::Agent::CrossAppTracing.obfuscator
451447
end

test/new_relic/agent/supportability_test.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@ def assert_api_supportability_metric_recorded(method_name)
250250
assert_metrics_recorded(["Supportability/API/#{method_name}"])
251251
end
252252

253-
254253
def test_process_request_metadata_records_supportability_metric
255254
NewRelic::Agent::External.process_request_metadata('')
256255

test/new_relic/agent/transaction/external_request_segment_test.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ def test_segment_records_noncat_metrics_without_valid_encoding_key
206206
end
207207
end
208208

209-
210209
def test_proper_metrics_recorded_for_distributed_trace_on_receiver
211210
with_config(:'distributed_tracing.enabled' => true,
212211
:trusted_account_key => 'trust_this!') do
@@ -296,7 +295,6 @@ def test_proper_metrics_recorded_for_distributed_trace_on_receiver_when_error_oc
296295
end
297296
end
298297

299-
300298
def test_segment_writes_outbound_request_headers_for_trace_context
301299
request = RequestWrapper.new
302300
with_config(trace_context_config) do
@@ -315,7 +313,6 @@ def test_segment_writes_outbound_request_headers_for_trace_context
315313
assert request.headers.key?('tracestate'), 'Expected to find tracestate header'
316314
end
317315

318-
319316
def test_add_request_headers_renames_segment_based_on_host_header
320317
request = RequestWrapper.new({'host' => 'anotherhost.local'})
321318
with_config(cat_config) do
@@ -335,7 +332,6 @@ def test_add_request_headers_renames_segment_based_on_host_header
335332
end
336333
end
337334

338-
339335
# Can pass :status_code and any HTTP code in headers to alter
340336
# default 200 (OK) HTTP status code
341337
def with_external_segment(headers, config, segment_params)
@@ -354,7 +350,6 @@ def with_external_segment(headers, config, segment_params)
354350
return [segment, http_response]
355351
end
356352

357-
358353
def test_sets_http_status_code_ok
359354
headers = {
360355
'X-NewRelic-App-Data' => 'this#is#not#valid#appdata',
@@ -459,8 +454,6 @@ def test_uri_recorded_as_tt_attribute
459454

460455
# --- get_request_metadata
461456

462-
463-
464457
def test_get_request_metadata_with_cross_app_tracing_disabled
465458
with_config(cat_config.merge(:'cross_application_tracer.enabled' => false)) do
466459
in_transaction do |txn|

test/new_relic/agent/transaction/message_broker_segment_test.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ def test_allows_symbol_exchange_names
7777
end
7878
end
7979

80-
81-
8280
def test_segment_adds_distributed_trace_headers_to_message_properties_for_produce
8381
NewRelic::Agent.instance.stubs(:connected?).returns(true)
8482
with_config(:"distributed_tracing.enabled" => true,

0 commit comments

Comments
 (0)