Skip to content

Commit 8aeb05d

Browse files
committed
fix tests
1 parent 04a8d04 commit 8aeb05d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Sentry.Profiling.Tests/SamplingTransactionProfilerTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ private SampleProfile CaptureAndValidate(ITransactionProfilerFactory factory)
8282
collectTask.Wait();
8383
var profileInfo = collectTask.Result;
8484
Assert.NotNull(profileInfo);
85-
ValidateProfile(profileInfo.Profile, elapsedNanoseconds);
86-
return profileInfo.Profile;
85+
ValidateProfile(profileInfo.Profile as SampleProfile, elapsedNanoseconds);
86+
return profileInfo.Profile as SampleProfile;
8787
}
8888

8989
[Fact(Skip = "This test is flaky. TODO: rework")]

0 commit comments

Comments
 (0)