Skip to content

Commit

Permalink
chore: Update xunit to 2.6.2
Browse files Browse the repository at this point in the history
This requires a fix to a test which wasn't awaiting the result of Assert.ThrowsAsync.
  • Loading branch information
jskeet committed Nov 20, 2023
1 parent a7ba66c commit cbc1a83
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.1" />
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="Xunit.Combinatorial" Version="1.5.25" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" />
<PackageReference Include="Xunit.SkippableFact" Version="1.4.13" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -382,17 +382,15 @@ public void TestUploadInBadServer_UploaderRestart(
/// Resuming on program restart with a non-seekable stream is not supported.
/// </summary>
[Fact]
public void TestUploadWithUploaderRestart_UnknownSize()
public async Task TestUploadWithUploaderRestart_UnknownSize()
{
// Unknown stream size not supported, exception always thrown
using (var server = new MultiChunkServer(_server))
using (var service = new MockClientService(server.HttpPrefix))
{
var content = new UnknownSizeMemoryStream(UploadTestBytes);
var uploader = new TestResumableUpload(service, "whatever", "PUT", content, "", 100);
var url = new Uri("http://what.ever/");
Assert.ThrowsAsync<NotImplementedException>(() => uploader.ResumeAsync(url));
}
using var server = new MultiChunkServer(_server);
using var service = new MockClientService(server.HttpPrefix);
var content = new UnknownSizeMemoryStream(UploadTestBytes);
var uploader = new TestResumableUpload(service, "whatever", "PUT", content, "", 100);
var url = new Uri("http://what.ever/");
await Assert.ThrowsAsync<NotImplementedException>(() => uploader.ResumeAsync(url));
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Src/Support/Google.Apis.Tests/Google.Apis.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.1" />
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="Xunit.Combinatorial" Version="1.5.25" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" />
<ProjectReference Include="..\Google.Apis\Google.Apis.csproj" />
Expand Down
2 changes: 1 addition & 1 deletion Src/Support/IntegrationTests/IntegrationTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.1" />
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" />
<ProjectReference Include="..\Google.Apis.Auth\Google.Apis.Auth.csproj" />
<ProjectReference Include="..\Google.Apis.Tests\Google.Apis.Tests.csproj" />
Expand Down

0 comments on commit cbc1a83

Please sign in to comment.