Skip to content

Commit 5d4250b

Browse files
committed
Removed corresponding test
1 parent 2856a3f commit 5d4250b

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

test/Sentry.Tests/ScopeTests.cs

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff 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)]

0 commit comments

Comments
 (0)