Skip to content

Commit 9a9bdee

Browse files
author
Andrew Omondi
committed
Fixes "async void" calls
1 parent fee1a6c commit 9a9bdee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/Microsoft.OpenApi.Readers.Tests/OpenApiReaderTests/OpenApiStreamReaderTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Licensed under the MIT license.
33

44
using System.IO;
5+
using System.Threading.Tasks;
56
using Xunit;
67

78
namespace Microsoft.OpenApi.Readers.Tests.OpenApiReaderTests
@@ -29,7 +30,7 @@ public void StreamShouldNotCloseIfLeaveStreamOpenSettingEqualsTrue()
2930
}
3031

3132
[Fact]
32-
public async void StreamShouldNotBeDisposedIfLeaveStreamOpenSettingIsTrue()
33+
public async Task StreamShouldNotBeDisposedIfLeaveStreamOpenSettingIsTrue()
3334
{
3435
var memoryStream = new MemoryStream();
3536
using var fileStream = Resources.GetStream(Path.Combine(SampleFolderPath, "petStore.yaml"));

0 commit comments

Comments
 (0)