File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed
Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -342,34 +342,6 @@ public void Transaction_SetToNull_ObserverSetsTraceFromPropagationContextIfEnabl
342342 observer . Received ( expectedCount ) . SetTrace ( Arg . Is ( expectedTraceId ) , Arg . Is ( expectedSpanId ) ) ;
343343 }
344344
345- [ Theory ]
346- [ InlineData ( true ) ]
347- [ InlineData ( false ) ]
348- public void ResetTransaction_MatchingTransaction_ObserverSetsTraceFromPropagationContextIfEnabled ( bool enableScopeSync )
349- {
350- // Arrange
351- var observer = Substitute . For < IScopeObserver > ( ) ;
352- var scope = new Scope ( new SentryOptions
353- {
354- ScopeObserver = observer ,
355- EnableScopeSync = enableScopeSync
356- } ) ;
357- var transaction = new TransactionTracer ( DisabledHub . Instance , "test-transaction" , "op" ) ;
358- scope . Transaction = transaction ;
359-
360- var expectedTraceId = scope . PropagationContext . TraceId ;
361- var expectedSpanId = scope . PropagationContext . SpanId ;
362- var expectedCount = enableScopeSync ? 1 : 0 ;
363-
364- observer . ClearReceivedCalls ( ) ;
365-
366- // Act
367- scope . ResetTransaction ( transaction ) ;
368-
369- // Assert
370- observer . Received ( expectedCount ) . SetTrace ( Arg . Is ( expectedTraceId ) , Arg . Is ( expectedSpanId ) ) ;
371- }
372-
373345 [ Theory ]
374346 [ InlineData ( true ) ]
375347 [ InlineData ( false ) ]
You can’t perform that action at this time.
0 commit comments