Skip to content

Commit 40f012b

Browse files
committed
rtyler no longer has 50 people he follows
1 parent a380059 commit 40f012b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/java/org/kohsuke/github/UserTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ public class UserTest extends AbstractGitHubApiTestBase {
1414
public void listFollowsAndFollowers() throws IOException {
1515
GHUser u = gitHub.getUser("rtyler");
1616
assertNotEquals(
17-
count50(u.listFollowers()),
18-
count50(u.listFollows()));
17+
count30(u.listFollowers()),
18+
count30(u.listFollows()));
1919
}
2020

21-
private Set<GHUser> count50(PagedIterable<GHUser> l) {
21+
private Set<GHUser> count30(PagedIterable<GHUser> l) {
2222
Set<GHUser> users = new HashSet<GHUser>();
2323
PagedIterator<GHUser> itr = l.iterator();
24-
for (int i=0; i<50 && itr.hasNext(); i++) {
24+
for (int i=0; i<30 && itr.hasNext(); i++) {
2525
users.add(itr.next());
2626
}
27-
assertEquals(50, users.size());
27+
assertEquals(30, users.size());
2828
return users;
2929
}
3030
}

0 commit comments

Comments
 (0)