Skip to content

Commit 6aae681

Browse files
wip
1 parent 5846980 commit 6aae681

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

spec/mongo/tracing/open_telemetry/command_tracer_spec.rb

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -120,20 +120,6 @@
120120
end
121121
end
122122

123-
context 'when result is not successful' do
124-
let(:result) do
125-
double('Result',
126-
has_cursor_id?: false,
127-
successful?: false,
128-
error: double('Error', code: 13))
129-
end
130-
131-
it 'sets the error status code' do
132-
expect(span).to receive(:set_attribute).with('db.response.status_code', '13')
133-
command_tracer.trace_command(message, operation_context, connection) { result }
134-
end
135-
end
136-
137123
context 'when an OperationFailure exception is raised' do
138124
let(:error) { Mongo::Error::OperationFailure.new('error', nil, code: 42) }
139125

0 commit comments

Comments
 (0)