diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-07-11 22:32:06 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-07-11 22:51:36 +0200 |
| commit | 915141f196d6ec20f3f0a398d9b328f25ae71241 (patch) | |
| tree | cc1d390e28708f90b0fe42cc42b562e1872ef4e5 /tests | |
| parent | 203c46de33622c211d8d3262c243e95f1157bc68 (diff) | |
Fix some warnings
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Jellyfin.MediaEncoding.Tests/FFprobeParserTests.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/Jellyfin.MediaEncoding.Tests/FFprobeParserTests.cs b/tests/Jellyfin.MediaEncoding.Tests/FFprobeParserTests.cs index 45808375f1..2955104a27 100644 --- a/tests/Jellyfin.MediaEncoding.Tests/FFprobeParserTests.cs +++ b/tests/Jellyfin.MediaEncoding.Tests/FFprobeParserTests.cs @@ -14,9 +14,10 @@ namespace Jellyfin.MediaEncoding.Tests public async Task Test(string fileName) { var path = Path.Join("Test Data", fileName); - using (var stream = File.OpenRead(path)) + await using (var stream = File.OpenRead(path)) { - await JsonSerializer.DeserializeAsync<InternalMediaInfoResult>(stream, JsonDefaults.Options).ConfigureAwait(false); + var res = await JsonSerializer.DeserializeAsync<InternalMediaInfoResult>(stream, JsonDefaults.Options).ConfigureAwait(false); + Assert.NotNull(res); } } } |
