Giving it a bit of delay in the hope that it removes flakiness of tests

This commit is contained in:
Kohsuke Kawaguchi
2016-06-03 00:04:36 -07:00
parent 1ce54a7925
commit 7b87de2b4c

View File

@@ -40,7 +40,7 @@ public class AppTest extends AbstractGitHubApiTestBase {
}
@Test
public void testRepositoryWithAutoInitializationCRUD() throws IOException {
public void testRepositoryWithAutoInitializationCRUD() throws Exception {
String name = "github-api-test-autoinit";
deleteRepository(name);
GHRepository r = gitHub.createRepository(name)
@@ -50,6 +50,7 @@ public class AppTest extends AbstractGitHubApiTestBase {
r.enableIssueTracker(false);
r.enableDownloads(false);
r.enableWiki(false);
Thread.sleep(3000);
assertNotNull(r.getReadme());
getUser().getRepository(name).delete();
}
@@ -602,6 +603,8 @@ public class AppTest extends AbstractGitHubApiTestBase {
.prerelease(false)
.create();
Thread.sleep(3000);
try {
for (GHTag tag : r.listTags()) {