diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2021-09-06 13:55:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-06 13:55:34 +0200 |
| commit | 74fef6c05bd61a8d1a3eba421c687619e7af19e1 (patch) | |
| tree | e160b79312891a69af5ce3301268760772e594f7 /tests | |
| parent | bf0a0c8b62aeb6eac6737461aac86c2e5a896f6d (diff) | |
| parent | e3dac4fda2033801085eb7086a3a534c473a00a0 (diff) | |
Merge pull request #6177 from Bond-009/async
Use async FileStreams where it makes sense
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Jellyfin.MediaEncoding.Tests/FFprobeParserTests.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/Jellyfin.MediaEncoding.Tests/FFprobeParserTests.cs b/tests/Jellyfin.MediaEncoding.Tests/FFprobeParserTests.cs index 2955104a2..97dbb3be0 100644 --- a/tests/Jellyfin.MediaEncoding.Tests/FFprobeParserTests.cs +++ b/tests/Jellyfin.MediaEncoding.Tests/FFprobeParserTests.cs @@ -3,6 +3,7 @@ using System.Text.Json; using System.Threading.Tasks; using Jellyfin.Extensions.Json; using MediaBrowser.MediaEncoding.Probing; +using MediaBrowser.Model.IO; using Xunit; namespace Jellyfin.MediaEncoding.Tests @@ -14,7 +15,7 @@ namespace Jellyfin.MediaEncoding.Tests public async Task Test(string fileName) { var path = Path.Join("Test Data", fileName); - await using (var stream = File.OpenRead(path)) + await using (var stream = AsyncFile.OpenRead(path)) { var res = await JsonSerializer.DeserializeAsync<InternalMediaInfoResult>(stream, JsonDefaults.Options).ConfigureAwait(false); Assert.NotNull(res); |
