From 61bd1d101883129d29fc1ef7b0900d39746151ea Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 16 Sep 2019 19:12:56 -0300 Subject: [PATCH] Bump NSubstitute from 3.1.0 to 4.2.1 (#1993) * Bump NSubstitute from 3.1.0 to 4.2.1 Bumps NSubstitute from 3.1.0 to 4.2.1. Signed-off-by: dependabot-preview[bot] * fix failing tests --- Octokit.Tests/Http/ApiConnectionTests.cs | 4 ++-- Octokit.Tests/Octokit.Tests.csproj | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Octokit.Tests/Http/ApiConnectionTests.cs b/Octokit.Tests/Http/ApiConnectionTests.cs index 5f3b7d2271..b41d6cd0a2 100644 --- a/Octokit.Tests/Http/ApiConnectionTests.cs +++ b/Octokit.Tests/Http/ApiConnectionTests.cs @@ -342,7 +342,7 @@ public async Task WhenGetReturnsOkThenBodyAsObjectIsReturned() .Returns(Task.FromResult(response)); var apiConnection = new ApiConnection(connection); - var actualResult = await apiConnection.GetQueuedOperation(queuedOperationUrl, Args.CancellationToken); + var actualResult = await apiConnection.GetQueuedOperation(queuedOperationUrl, CancellationToken.None); Assert.Same(actualResult, result); } @@ -361,7 +361,7 @@ public async Task WhenGetReturnsNoContentThenReturnsEmptyCollection() .Returns(Task.FromResult(response)); var apiConnection = new ApiConnection(connection); - var actualResult = await apiConnection.GetQueuedOperation(queuedOperationUrl, Args.CancellationToken); + var actualResult = await apiConnection.GetQueuedOperation(queuedOperationUrl, CancellationToken.None); Assert.Empty(actualResult); } diff --git a/Octokit.Tests/Octokit.Tests.csproj b/Octokit.Tests/Octokit.Tests.csproj index 17e333d049..c136242846 100644 --- a/Octokit.Tests/Octokit.Tests.csproj +++ b/Octokit.Tests/Octokit.Tests.csproj @@ -31,7 +31,7 @@ - +