mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-09 21:09:51 +00:00
Fix timeout getting multiple repositories (#1411)
* add test * [WIP] * put logic for redirects outside of delegating handler * change send method * format code * reorganized http client adapter * change HttpClientAdapter * rework http redirect tests - still an issue with accessing the response.RequestMessage.Content property as it is disposed * remove some unused lines in httpclientadapter * Reworked redirect implementation to fully clone http request and re-use it later Now the skipped test from #874 works! Also had to fix the new ReturnsRenamedRepository test as the ionide repo was renamed again
This commit is contained in:
committed by
Ryan Gribble
parent
ef0da2f84d
commit
5b9e23c2fb
@@ -605,6 +605,31 @@ public class RepositoriesClientTests
|
||||
Assert.Equal(AccountType.Organization, repository.Owner.Type);
|
||||
}
|
||||
|
||||
[IntegrationTest]
|
||||
public async Task ReturnsRenamedRepository()
|
||||
{
|
||||
var github = Helper.GetAuthenticatedClient();
|
||||
|
||||
var repository = await github.Repository.Get("michael-wolfenden", "Polly");
|
||||
|
||||
Assert.Equal("https://github.com/App-vNext/Polly.git", repository.CloneUrl);
|
||||
Assert.False(repository.Private);
|
||||
Assert.False(repository.Fork);
|
||||
//Assert.Equal(AccountType.User, repository.Owner.Type);
|
||||
|
||||
repository = await github.Repository.Get("fsprojects", "FSharp.Atom");
|
||||
|
||||
Assert.Equal("https://github.com/ionide/ionide-atom-fsharp.git", repository.CloneUrl);
|
||||
Assert.False(repository.Private);
|
||||
Assert.False(repository.Fork);
|
||||
|
||||
repository = await github.Repository.Get("cabbage89", "Orchard.Weixin");
|
||||
|
||||
Assert.Equal("https://github.com/cabbage89/Orchard.WeChat.git", repository.CloneUrl);
|
||||
Assert.False(repository.Private);
|
||||
Assert.False(repository.Fork);
|
||||
}
|
||||
|
||||
[IntegrationTest]
|
||||
public async Task ReturnsOrganizationRepositoryWithRepositoryId()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user