Skip to content

Commit

Permalink
Fix missed value update
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwiseman committed Mar 20, 2023
1 parent c689ac9 commit 7cce5da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/java/org/kohsuke/github/AppTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,7 @@ public void testAddDeployKey() throws IOException {

GHDeployKey k = Iterables.find(myRepository.getDeployKeys(), new Predicate<GHDeployKey>() {
public boolean apply(GHDeployKey deployKey) {
return newDeployKey.getId() == deployKey.getId() && deployKey.isRead_only();
return newDeployKey.getId() == deployKey.getId() && !deployKey.isRead_only();
}
});
assertThat(k, notNullValue());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"bodyPatterns": [
{
"equalToJson": "{\"read_only\":true,\"title\":\"test\",\"key\":\"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIATWwMLytklB44O66isWRKOB3Qd7Ysc7q7EyWTmT0bG9 test@example.com\"}",
"equalToJson": "{\"read_only\":false,\"title\":\"test\",\"key\":\"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIATWwMLytklB44O66isWRKOB3Qd7Ysc7q7EyWTmT0bG9 test@example.com\"}",
"ignoreArrayOrder": true,
"ignoreExtraElements": false
}
Expand Down

0 comments on commit 7cce5da

Please sign in to comment.