Skip to content

Commit 7cce5da

Browse files
committed
Fix missed value update
1 parent c689ac9 commit 7cce5da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,7 @@ public void testAddDeployKey() throws IOException {
12931293

12941294
GHDeployKey k = Iterables.find(myRepository.getDeployKeys(), new Predicate<GHDeployKey>() {
12951295
public boolean apply(GHDeployKey deployKey) {
1296-
return newDeployKey.getId() == deployKey.getId() && deployKey.isRead_only();
1296+
return newDeployKey.getId() == deployKey.getId() && !deployKey.isRead_only();
12971297
}
12981298
});
12991299
assertThat(k, notNullValue());

src/test/resources/org/kohsuke/github/AppTest/wiremock/testAddDeployKey/mappings/repos_hub4j-test-org_github-api-test_keys-3.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"bodyPatterns": [
1313
{
14-
"equalToJson": "{\"read_only\":true,\"title\":\"test\",\"key\":\"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIATWwMLytklB44O66isWRKOB3Qd7Ysc7q7EyWTmT0bG9 [email protected]\"}",
14+
"equalToJson": "{\"read_only\":false,\"title\":\"test\",\"key\":\"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIATWwMLytklB44O66isWRKOB3Qd7Ysc7q7EyWTmT0bG9 [email protected]\"}",
1515
"ignoreArrayOrder": true,
1616
"ignoreExtraElements": false
1717
}

0 commit comments

Comments
 (0)