fix failed tests

This commit is contained in:
Alexander Efremov
2016-06-17 04:54:56 +07:00
parent 5af04e32c8
commit 89d13f329e
2 changed files with 6 additions and 6 deletions
@@ -91,7 +91,7 @@ namespace Octokit.Tests.Reactive
[Fact]
public async Task RequestsCorrectUrlMulti()
{
var firstPageUrl = new Uri("repos/fakeOwner/fakeRepoName/pulls/7/comments", UriKind.Relative);
var firstPageUrl = new Uri("repos/owner/name/pulls/7/comments", UriKind.Relative);
var secondPageUrl = new Uri("https://example.com/page/2");
var firstPageLinks = new Dictionary<string, Uri> { { "next", secondPageUrl } };
var firstPageResponse = new ApiResponse<List<PullRequestReviewComment>>
@@ -532,7 +532,7 @@ namespace Octokit.Tests.Reactive
[Fact]
public async Task RequestsCorrectUrlWithoutSelectedSortingArgumentsMulti()
{
var firstPageUrl = new Uri("repos/fakeOwner/fakeRepoName/pulls/comments", UriKind.Relative);
var firstPageUrl = new Uri("repos/owner/name/pulls/comments", UriKind.Relative);
var secondPageUrl = new Uri("https://example.com/page/2");
var firstPageLinks = new Dictionary<string, Uri> { { "next", secondPageUrl } };
var firstPageResponse = new ApiResponse<List<PullRequestReviewComment>>
@@ -654,7 +654,7 @@ namespace Octokit.Tests.Reactive
var client = new ObservablePullRequestReviewCommentsClient(gitHubClient);
var results = await client.GetAllForRepository("owner", "name").ToArray();
var results = await client.GetAllForRepository(1).ToArray();
Assert.Equal(8, results.Length);
gitHubClient.Connection.Received(1).Get<List<PullRequestReviewComment>>(firstPageUrl,