Skip to content

Commit

Permalink
chore: Bump System.Text.Json
Browse files Browse the repository at this point in the history
  • Loading branch information
HofmeisterAn committed Oct 10, 2024
1 parent 159e4bf commit 12cccf9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackageVersion Include="ReflectionMagic" Version="5.0.1"/>
<PackageVersion Include="SharpZipLib" Version="1.4.2"/>
<PackageVersion Include="SSH.NET" Version="2023.0.0"/>
<PackageVersion Include="System.Text.Json" Version="6.0.9"/>
<PackageVersion Include="System.Text.Json" Version="6.0.10"/>
<!-- Unit and integration test dependencies: -->
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1"/>
<PackageVersion Include="Microsoft.Extensions.Diagnostics.Testing" Version="8.9.1"/>
Expand Down
5 changes: 5 additions & 0 deletions src/Testcontainers.WebDriver/WebDriverContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ public async Task ExportVideoAsync(string target, CancellationToken ct = default
var bytes = await _ffmpegContainer.ReadFileAsync(WebDriverBuilder.VideoFilePath, ct)
.ConfigureAwait(false);

#if NET6_0_OR_GREATER
await File.WriteAllBytesAsync(target, bytes, ct)
.ConfigureAwait(false);
#else
File.WriteAllBytes(target, bytes);
#endif
}

/// <inheritdoc />
Expand Down
5 changes: 5 additions & 0 deletions src/Testcontainers/Containers/ResourceReaper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,12 @@ public async ValueTask DisposeAsync()

try
{
#if NET8_0_OR_GREATER
await _maintainConnectionCts.CancelAsync()
.ConfigureAwait(false);
#else
_maintainConnectionCts.Cancel();
#endif

// Close connection before disposing Resource Reaper.
await _maintainConnectionTask
Expand Down

0 comments on commit 12cccf9

Please sign in to comment.