Skip to content

Commit

Permalink
Fix test after applying comments
Browse files Browse the repository at this point in the history
  • Loading branch information
marcotc committed Aug 12, 2024
1 parent a40e724 commit 470e4bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/datadog/tracing/contrib/propagation/sql_comment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

RSpec.describe Datadog::Tracing::Contrib::Propagation::SqlComment do
let(:propagation_mode) { Datadog::Tracing::Contrib::Propagation::SqlComment::Mode.new(mode, append) }
let(:append_comment) { false }
let(:append) { false }

describe '.annotate!' do
let(:span_op) { Datadog::Tracing::SpanOperation.new('sql_comment_propagation_span', service: 'db_service') }
Expand Down Expand Up @@ -47,7 +47,7 @@
end

let(:sql_statement) { 'SELECT 1' }
let(:append_comment) { false }
let(:append) { false }

context 'when tracing is enabled' do
before do
Expand Down Expand Up @@ -156,7 +156,7 @@
end

context 'when append is true' do
let(:append_comment) { true }
let(:append) { true }

it 'appends the comment after the sql statement' do
is_expected.to eq("#{sql_statement} /*dde='dev',ddps='api',ddpv='1.2',dddbs='db_service'*/")
Expand Down

0 comments on commit 470e4bb

Please sign in to comment.