Skip to content

Commit

Permalink
Bump NSubstitute from 3.1.0 to 4.2.1 (#1993)
Browse files Browse the repository at this point in the history
* 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] <[email protected]>

* fix failing tests
  • Loading branch information
dependabot-preview[bot] authored and shiftkey committed Sep 16, 2019
1 parent c23652a commit 61bd1d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Octokit.Tests/Http/ApiConnectionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ public async Task WhenGetReturnsOkThenBodyAsObjectIsReturned()
.Returns(Task.FromResult(response));
var apiConnection = new ApiConnection(connection);

var actualResult = await apiConnection.GetQueuedOperation<object>(queuedOperationUrl, Args.CancellationToken);
var actualResult = await apiConnection.GetQueuedOperation<object>(queuedOperationUrl, CancellationToken.None);
Assert.Same(actualResult, result);
}

Expand All @@ -361,7 +361,7 @@ public async Task WhenGetReturnsNoContentThenReturnsEmptyCollection()
.Returns(Task.FromResult(response));
var apiConnection = new ApiConnection(connection);

var actualResult = await apiConnection.GetQueuedOperation<object>(queuedOperationUrl, Args.CancellationToken);
var actualResult = await apiConnection.GetQueuedOperation<object>(queuedOperationUrl, CancellationToken.None);
Assert.Empty(actualResult);
}

Expand Down
2 changes: 1 addition & 1 deletion Octokit.Tests/Octokit.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<ItemGroup>
<ProjectReference Include="..\Octokit\Octokit.csproj" />
<ProjectReference Include="..\Octokit.Reactive\Octokit.Reactive.csproj" />
<PackageReference Include="NSubstitute" Version="3.1.0" />
<PackageReference Include="NSubstitute" Version="4.2.1" />
</ItemGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.0' ">
Expand Down

0 comments on commit 61bd1d1

Please sign in to comment.