Skip to content

Commit

Permalink
Update src/test/java/org/kohsuke/github/GHRepositoryForkBuilderTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwiseman authored Jan 16, 2025
1 parent 4d9581a commit b2be143
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,8 @@ private void verifyBranches(GHRepository forked, boolean defaultBranchOnly) thro
*/
@Test
public void testFork() throws Exception {
// equivalent to the deprecated fork() method
TestForkBuilder builder = createBuilder();
GHRepository forkedRepo = builder.create();
// cover the deprecated fork() method
GHRepository forkedRepo = repo.fork();

verifyBasicForkProperties(repo, forkedRepo, repo.getName());
verifyBranches(forkedRepo, false);
Expand Down

0 comments on commit b2be143

Please sign in to comment.