Skip to content

Commit 2730563

Browse files
Bump xunit from 2.5.0 to 2.5.1 (#238)
1 parent 40078d6 commit 2730563

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

test/Directory.Build.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<ItemGroup>
33
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="17.6.2" />
44
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.2" />
5-
<PackageReference Include="xunit" Version="2.5.0" />
5+
<PackageReference Include="xunit" Version="2.5.1" />
66
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.1">
77
<PrivateAssets>all</PrivateAssets>
88
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

test/TestableHttpClient.Tests/GlobalUsings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
global using System;
22
global using System.Collections.Generic;
3+
global using System.Diagnostics.CodeAnalysis;
34
global using System.Linq;
45
global using System.Net;
56
global using System.Net.Http;

test/TestableHttpClient.Tests/TestableHttpMessageHandlerTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ public async Task ClearRequests_ByDefault_ShouldClearRequests()
137137
}
138138

139139
[Fact]
140+
[SuppressMessage("Usage", "xUnit1031:Do not use blocking task operations in test method", Justification = "Here it is necessary, if it blocks the test, it will time out and breaks the test.")]
140141
public void GetAsync_ShouldNotHang()
141142
{
142143
using TestableHttpMessageHandler sut = new();

0 commit comments

Comments
 (0)