|
388 | 388 |
|
389 | 389 | it do |
390 | 390 | expect(callback_spy).to have_received(:before_start).with(span_op).ordered |
391 | | - expect(callback_spy).to have_received(:after_stop).with(span_op).ordered |
| 391 | + expect(callback_spy).to have_received(:after_stop).with(span_op, nil).ordered |
392 | 392 | expect(callback_spy).to have_received(:after_finish).with(kind_of(Datadog::Tracing::Span), span_op).ordered |
393 | 393 | expect(callback_spy).to_not have_received(:on_error) |
394 | 394 | end |
|
440 | 440 |
|
441 | 441 | it do |
442 | 442 | expect(callback_spy).to have_received(:before_start).with(span_op).ordered |
443 | | - expect(callback_spy).to have_received(:after_stop).with(span_op).ordered |
| 443 | + expect(callback_spy).to have_received(:after_stop).with(span_op, error).ordered |
444 | 444 | expect(callback_spy).to have_received(:on_error).with(span_op, error).ordered |
445 | 445 | expect(callback_spy).to have_received(:after_finish).with(kind_of(Datadog::Tracing::Span), span_op).ordered |
446 | 446 | end |
|
472 | 472 |
|
473 | 473 | it do |
474 | 474 | expect(callback_spy).to have_received(:before_start).with(span_op).ordered |
475 | | - expect(callback_spy).to have_received(:after_stop).with(span_op).ordered |
| 475 | + expect(callback_spy).to have_received(:after_stop).with(span_op, error).ordered |
476 | 476 | expect(callback_spy).to have_received(:on_error).with(span_op, error).ordered |
477 | 477 | expect(callback_spy).to have_received(:after_finish).with(kind_of(Datadog::Tracing::Span), span_op).ordered |
478 | 478 | end |
|
663 | 663 | include_context 'callbacks' |
664 | 664 | before { stop } |
665 | 665 | it do |
666 | | - expect(callback_spy).to have_received(:after_stop).with(span_op) |
| 666 | + expect(callback_spy).to have_received(:after_stop).with(span_op, nil) |
667 | 667 | expect(callback_spy).to have_received(:before_start).with(span_op) |
668 | 668 | expect(callback_spy).to_not have_received(:after_finish) |
669 | 669 | end |
|
685 | 685 | include_context 'callbacks' |
686 | 686 | before { stop } |
687 | 687 | it do |
688 | | - expect(callback_spy).to have_received(:after_stop).with(span_op) |
| 688 | + expect(callback_spy).to have_received(:after_stop).with(span_op, nil) |
689 | 689 | expect(callback_spy).to_not have_received(:before_start) |
690 | 690 | expect(callback_spy).to_not have_received(:after_finish) |
691 | 691 | end |
|
771 | 771 | include_context 'callbacks' |
772 | 772 | before { finish } |
773 | 773 | it do |
774 | | - expect(callback_spy).to have_received(:after_stop).with(span_op).ordered |
| 774 | + expect(callback_spy).to have_received(:after_stop).with(span_op, nil).ordered |
775 | 775 | expect(callback_spy).to have_received(:after_finish).with(kind_of(Datadog::Tracing::Span), span_op).ordered |
776 | 776 | end |
777 | 777 | end |
|
0 commit comments