test/instrumentation/sidekiq-client_test.rb in instana-1.9.6 vs test/instrumentation/sidekiq-client_test.rb in instana-1.9.7
- old
+ new
@@ -66,11 +66,11 @@
def assert_normal_trace_recorded(job)
assert_equal 1, ::Instana.processor.queue_count
client_trace = Instana.processor.queued_traces.first
- assert_equal 2, client_trace.spans.count
+ assert_equal 2, client_trace.spans.length
spans = client_trace.spans.to_a
first_span = spans[0]
second_span = spans[1]
assert_equal :sdk, first_span[:n]
@@ -87,10 +87,10 @@
def assert_failure_trace_recorded
assert_equal 1, ::Instana.processor.queue_count
client_trace = Instana.processor.queued_traces.first
- assert_equal 2, client_trace.spans.count
+ assert_equal 2, client_trace.spans.length
spans = client_trace.spans.to_a
first_span = spans[0]
second_span = spans[1]
assert_equal :sdk, first_span[:n]