Skip to content

Commit 30279cd

Browse files
committed
tests: adds missing cancellation token argument
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
1 parent 069b32a commit 30279cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/Microsoft.OpenApi.Tests/Extensions/OpenApiSerializableExtensionsTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.IO;
1+
using System.IO;
22
using System.Threading;
33
using System.Threading.Tasks;
44
using Xunit;
@@ -109,7 +109,7 @@ public async Task SerializeAsJsonAsync_WithTerseSettings_WritesToStream()
109109

110110
stream.Position = 0;
111111
using var reader = new StreamReader(stream);
112-
var output = await reader.ReadToEndAsync();
112+
var output = await reader.ReadToEndAsync(TestContext.Current.CancellationToken);
113113

114114
Assert.Equal("{\"name\":\"param1\",\"in\":\"query\",\"schema\":{\"type\":\"string\"}}", output);
115115
}

0 commit comments

Comments
 (0)