We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 204e639 + 5f95987 commit 01fcbc2Copy full SHA for 01fcbc2
1 file changed
src/test/java/org/kohsuke/github/AppTest.java
@@ -221,10 +221,12 @@ public void testMyOrganizations() throws IOException {
221
}
222
223
@Test
224
- public void testMyTeamsContainsAllMyOrganizations() throws IOException {
+ public void testMyOrganizationsContainMyTeams() throws IOException {
225
Map<String, Set<GHTeam>> teams = gitHub.getMyTeams();
226
Map<String, GHOrganization> myOrganizations = gitHub.getMyOrganizations();
227
- assertEquals(teams.keySet(), myOrganizations.keySet());
+ //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()));
230
231
232
0 commit comments