Skip to content

Commit 3b159e1

Browse files
committed
Follow style in other tests
1 parent 816fe3b commit 3b159e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/contrib/sidekiq/client_tracer_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ def test_empty
3030
spans = @writer.spans
3131
assert_equal(2, spans.length)
3232

33-
parent_span = spans[0]
33+
parent_span, child_span = spans
34+
3435
assert_equal('parent.span', parent_span.name)
3536
assert_equal(0, parent_span.status)
3637
assert_nil(parent_span.parent)
3738

38-
child_span = spans[1]
3939
assert_equal('sidekiq', child_span.service)
4040
assert_equal('ClientTracerTest::EmptyWorker', child_span.resource)
4141
assert_equal('default', child_span.get_tag('sidekiq.job.queue'))

0 commit comments

Comments
 (0)