Skip to content

Commit

Permalink
Remove obsolete spec
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed Jan 24, 2023
1 parent 99dbb92 commit 26d5ca3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion spec/datadog/tracing/distributed/b3_multi_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@

it { expect(digest.trace_id).to eq(0xaaaaaaaaaaaaaaaaffffffffffffffff) }
it { expect(digest.span_id).to eq(0xbbbbbbbbbbbbbbbb) }
xit { expect(digest.trace_distributed_tags).to include('_dd.p.tid' => 'aaaaaaaaaaaaaaaa') }
end
end
end
Expand Down
1 change: 0 additions & 1 deletion spec/datadog/tracing/distributed/b3_single_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@

it { expect(digest.trace_id).to eq(0xaaaaaaaaaaaaaaaaffffffffffffffff) }
it { expect(digest.span_id).to eq(0xbbbbbbbbbbbbbbbb) }
xit { expect(digest.trace_distributed_tags).to include('_dd.p.tid' => 'aaaaaaaaaaaaaaaa') }
end
end
end
Expand Down
8 changes: 2 additions & 6 deletions spec/datadog/tracing/distributed/trace_context_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,22 +128,18 @@
end
end

context 'with 128 bit trace id and distributed tag `_dd.p.tid`' do
context 'with 128 bit trace id' do
let(:digest) do
Datadog::Tracing::TraceDigest.new(
trace_id: 0xaaaaaaaaaaaaaaaaffffffffffffffff,
span_id: 0xbbbbbbbbbbbbbbbb,
trace_distributed_tags: {
'_dd.p.tid' => 'aaaaaaaaaaaaaaaa'
}
span_id: 0xbbbbbbbbbbbbbbbb
)
end

it do
inject!

expect(traceparent).to eq('00-aaaaaaaaaaaaaaaaffffffffffffffff-bbbbbbbbbbbbbbbb-00')
expect(tracestate).to eq('dd=t.tid:aaaaaaaaaaaaaaaa')
end
end

Expand Down

0 comments on commit 26d5ca3

Please sign in to comment.