Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 40f012b

Browse filesBrowse files
committed
rtyler no longer has 50 people he follows
1 parent a380059 commit 40f012b
Copy full SHA for 40f012b

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed

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

Copy file name to clipboardExpand all lines: src/test/java/org/kohsuke/github/UserTest.java
+5-5Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.