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 01fcbc2

Browse filesBrowse files
committed
Merge pull request hub4j#282 from apemberton/org-fix
related to JENKINS-34834. updating test for similar condition
2 parents 204e639 + 5f95987 commit 01fcbc2
Copy full SHA for 01fcbc2

File tree

Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/test/java/org/kohsuke/github/AppTest.java
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,12 @@ public void testMyOrganizations() throws IOException {
221221
}
222222

223223
@Test
224-
public void testMyTeamsContainsAllMyOrganizations() throws IOException {
224+
public void testMyOrganizationsContainMyTeams() throws IOException {
225225
Map<String, Set<GHTeam>> teams = gitHub.getMyTeams();
226226
Map<String, GHOrganization> myOrganizations = gitHub.getMyOrganizations();
227-
assertEquals(teams.keySet(), myOrganizations.keySet());
227+
//GitHub no longer has default 'owners' team, so there may be organization memberships without a team
228+
//https://help.github.com/articles/about-improved-organization-permissions/
229+
assertTrue(myOrganizations.keySet().containsAll(teams.keySet()));
228230
}
229231

230232
@Test

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.