We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5846980 commit 6aae681Copy full SHA for 6aae681
spec/mongo/tracing/open_telemetry/command_tracer_spec.rb
@@ -120,20 +120,6 @@
120
end
121
122
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
135
136
137
context 'when an OperationFailure exception is raised' do
138
let(:error) { Mongo::Error::OperationFailure.new('error', nil, code: 42) }
139
0 commit comments