mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-09 13:01:36 +00:00
Stop requesting ALL public gists
We don't need this in our integration tests.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Octokit;
|
||||
using Octokit.Tests.Helpers;
|
||||
using Octokit.Tests.Integration;
|
||||
using Xunit;
|
||||
|
||||
@@ -103,15 +104,8 @@ public class GistsClientTests
|
||||
Assert.True(gists.Count > 0);
|
||||
|
||||
// Make sure we can successfully request gists for another user
|
||||
Assert.DoesNotThrow(async () => { await _fixture.GetAllForUser("FakeHaacked"); });
|
||||
Assert.DoesNotThrow(async () => { await _fixture.GetAllForUser("FakeHaacked", startTime); });
|
||||
|
||||
// Test public gists
|
||||
var publicGists = await _fixture.GetAllPublic();
|
||||
Assert.True(publicGists.Count > 1);
|
||||
|
||||
var publicGistsSinceStartTime = await _fixture.GetAllPublic(startTime);
|
||||
Assert.True(publicGistsSinceStartTime.Count > 0);
|
||||
await _fixture.GetAllForUser("FakeHaacked");
|
||||
await _fixture.GetAllForUser("FakeHaacked", startTime);
|
||||
|
||||
// Test starred gists
|
||||
await _fixture.Star(createdGist.Id);
|
||||
|
||||
Reference in New Issue
Block a user