Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit f8fe1dd

Browse files
committed
Presence check needs to run on the same repo
1 parent bf44232 commit f8fe1dd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ public class LifecycleTest extends AbstractGitHubApiTestBase {
1919
@Test
2020
public void testCreateRepository() throws IOException, GitAPIException, InterruptedException {
2121
GHMyself myself = gitHub.getMyself();
22-
GHRepository repository = myself.getRepository("github-api-test");
22+
GHOrganization org = gitHub.getOrganization("github-api-test-org");
23+
GHRepository repository = org.getRepository("github-api-test");
2324
if (repository != null) {
2425
repository.delete();
2526
Thread.sleep(1000);
2627
}
27-
repository = gitHub.getOrganization("github-api-test-org").createRepository("github-api-test",
28+
repository = org.createRepository("github-api-test",
2829
"a test repository used to test kohsuke's github-api", "http://github-api.kohsuke.org/", "Core Developers", true);
2930
Thread.sleep(1000); // wait for the repository to become ready
3031

0 commit comments

Comments
 (0)