Skip to content

Commit 8fa09e9

Browse files
committed
Update MauiEventsBinderTests.cs
1 parent 19166b5 commit 8fa09e9

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test/Sentry.Maui.Tests/MauiEventsBinderTests.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@ public Fixture()
2020
{
2121
Hub = Substitute.For<IHub>();
2222
Hub.When(h => h.ConfigureScope(Arg.Any<Action<Scope>>()))
23-
.Do(c => c.Arg<Action<Scope>>()(Scope));
23+
.Do(c =>
24+
{
25+
c.Arg<Action<Scope>>()(Scope);
2426

25-
Hub.StartSpan(default, default).ReturnsForAnyArgs(args =>
26-
{
27-
var tracer = Substitute.For<ITransactionTracer>();
28-
return tracer;
29-
});
27+
});
3028

29+
Scope.Transaction = Substitute.For<ITransactionTracer>();
3130

3231
Options.Debug = true;
3332
var logger = Substitute.For<IDiagnosticLogger>();

0 commit comments

Comments
 (0)