Skip to content

Commit

Permalink
use subject for origin test case
Browse files Browse the repository at this point in the history
  • Loading branch information
brettlangdon committed Feb 28, 2019
1 parent 43c05fc commit 7c9bc0e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions spec/ddtrace/integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ def agent_receives_span_step3(previous_success)
let(:tracer) { get_test_tracer }

context 'when #sampling_priority is set on a parent span' do
subject(:tag_value) { parent_span.get_tag(Datadog::Ext::DistributedTracing::ORIGIN_KEY) }
let(:parent_span) { tracer.start_span('parent span') }

before(:each) do
Expand All @@ -190,13 +191,7 @@ def agent_receives_span_step3(previous_success)
try_wait_until { tracer.writer.spans(:keep).any? }
end

it do
tag_value = parent_span.get_tag(
Datadog::Ext::DistributedTracing::ORIGIN_KEY
)

expect(tag_value).to eq('synthetics')
end
it { is_expected.to eq('synthetics') }
end
end

Expand Down

0 comments on commit 7c9bc0e

Please sign in to comment.