Skip to content

Commit

Permalink
correction on assertion code for adding collaborator
Browse files Browse the repository at this point in the history
  • Loading branch information
ShalomGottesman committed May 27, 2020
1 parent 2131474 commit 81e4681
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/com/jcabi/github/RtCollaborators.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,12 @@ public void add(
.uri().path(user).back()
.fetch()
.as(RestResponse.class)
.assertStatus(HttpURLConnection.HTTP_NO_CONTENT);
.assertStatus(
Matchers.isOneOf(
HttpURLConnection.HTTP_NO_CONTENT,
HttpURLConnection.HTTP_CREATED
)
);
}

@Override
Expand Down

0 comments on commit 81e4681

Please sign in to comment.