Seeing a failure to create

This commit is contained in:
Kohsuke Kawaguchi
2014-03-28 10:58:18 -07:00
parent 0261f1262f
commit 320cf0fea2

View File

@@ -31,11 +31,12 @@ public class LifecycleTest extends TestCase {
gitHub = GitHub.connect();
}
public void testCreateRepository() throws IOException, GitAPIException {
public void testCreateRepository() throws IOException, GitAPIException, InterruptedException {
GHMyself myself = gitHub.getMyself();
GHRepository repository = myself.getRepository("github-api-test");
if (repository != null) {
repository.delete();
Thread.sleep(1000);
}
repository = gitHub.createRepository("github-api-test",
"a test repository used to test kohsuke's github-api", "http://github-api.kohsuke.org/", true);