@@ -501,14 +501,14 @@ describe('Transaction', () => {
501501 transaction . id = ID ;
502502 } ) ;
503503
504- it ( 'error with unset `id`' , done => {
504+ it ( 'no error with unset `id`' , done => {
505505 const expectedError = new Error (
506506 'Transaction ID is unknown, nothing to rollback.'
507507 ) ;
508508 delete transaction . id ;
509509
510510 transaction . rollback ( err => {
511- assert . deepStrictEqual ( err , expectedError ) ;
511+ assert . deepStrictEqual ( err , null ) ;
512512
513513 const exportResults = extractExportedSpans ( ) ;
514514 const actualSpanNames = exportResults . spanNames ;
@@ -521,7 +521,9 @@ describe('Transaction', () => {
521521 `span names mismatch:\n\tGot: ${ actualSpanNames } \n\tWant: ${ expectedSpanNames } `
522522 ) ;
523523
524- const expectedEventNames = [ ] ;
524+ const expectedEventNames = [
525+ 'Transaction ID is unknown, nothing to rollback.' ,
526+ ] ;
525527 assert . deepStrictEqual (
526528 actualEventNames ,
527529 expectedEventNames ,
@@ -532,12 +534,12 @@ describe('Transaction', () => {
532534 const spans = exportResults . spans ;
533535 const firstSpan = spans [ 0 ] ;
534536 assert . strictEqual (
535- SpanStatusCode . ERROR ,
537+ SpanStatusCode . UNSET ,
536538 firstSpan . status . code ,
537- 'Unexpected an span status code'
539+ 'Unexpected span status code'
538540 ) ;
539541 assert . strictEqual (
540- expectedError . message ,
542+ undefined ,
541543 firstSpan . status . message ,
542544 'Unexpected span status message'
543545 ) ;
0 commit comments