File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
test/coverlet.core.coverage.tests Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ public void AsyncAwait_Issue_1275()
195
195
{
196
196
CoveragePrepareResult coveragePrepareResult = await TestInstrumentationHelper . Run < Issue_1275 > ( async instance =>
197
197
{
198
- var cts = new CancellationTokenSource ( ) ;
198
+ using var cts = new CancellationTokenSource ( ) ;
199
199
await ( Task ) instance . Execute ( cts . Token ) ;
200
200
} ,
201
201
persistPrepareResultToFile : pathSerialize [ 0 ] ) ;
Original file line number Diff line number Diff line change 3
3
4
4
<PropertyGroup >
5
5
<TargetFramework >net8.0</TargetFramework >
6
+ <UseMicrosoftTestingPlatformRunner >true</UseMicrosoftTestingPlatformRunner >
6
7
<OutputType >Exe</OutputType >
8
+ <TestingPlatformDotnetTestSupport >true</TestingPlatformDotnetTestSupport >
7
9
<IsPackable >false</IsPackable >
8
10
<IsTestProject >true</IsTestProject >
9
11
<NoWarn >$(NoWarn);CS8002</NoWarn >
20
22
<PackageReference Include =" Moq" />
21
23
<PackageReference Include =" Tmds.ExecFunction" />
22
24
<PackageReference Include =" ReportGenerator.Core" />
23
- <PackageReference Include =" xunit" VersionOverride = " 2.9.3 " />
24
- <PackageReference Include =" xunit.runner.visualstudio" VersionOverride = " 2.8.2 " >
25
+ <PackageReference Include =" xunit.v3 " />
26
+ <PackageReference Include =" xunit.runner.visualstudio" >
25
27
<PrivateAssets >all</PrivateAssets >
26
28
<IncludeAssets >runtime; build; native; contentfiles; analyzers</IncludeAssets >
27
29
</PackageReference >
You can’t perform that action at this time.
0 commit comments