Commit 93d3c6df authored by Greg Messner's avatar Greg Messner
Browse files

Change wait time when checking export status.

parent 835ec7da
...@@ -97,23 +97,6 @@ public class TestImportExportApi extends AbstractIntegrationTest { ...@@ -97,23 +97,6 @@ public class TestImportExportApi extends AbstractIntegrationTest {
assumeNotNull(gitLabApi); assumeNotNull(gitLabApi);
} }
@Test
public void testScheduleExport() throws GitLabApiException {
// Arrange
assumeNotNull(testProject);
// Act
gitLabApi.getImportExportApi().scheduleExport(testProject);
ExportStatus exportStatus = gitLabApi.getImportExportApi().getExportStatus(testProject);
// Assert
assertNotNull(exportStatus);
ExportStatus.Status status = exportStatus.getExportStatus();
assertNotEquals(ExportStatus.Status.NONE, status);
}
@Test @Test
public void testExportDownloadAndImport() throws GitLabApiException { public void testExportDownloadAndImport() throws GitLabApiException {
...@@ -135,13 +118,13 @@ public class TestImportExportApi extends AbstractIntegrationTest { ...@@ -135,13 +118,13 @@ public class TestImportExportApi extends AbstractIntegrationTest {
break; break;
} }
if (retries >= 40) { if (retries >= 6) {
System.out.println("aborting!"); System.out.println("aborting!");
fail("Project export is taking too long, failing test."); fail("Project export is taking too long, failing test.");
} }
try { try {
Thread.sleep(1000); Thread.sleep(10000);
} catch (InterruptedException e) { } catch (InterruptedException e) {
} }
...@@ -173,13 +156,13 @@ public class TestImportExportApi extends AbstractIntegrationTest { ...@@ -173,13 +156,13 @@ public class TestImportExportApi extends AbstractIntegrationTest {
break; break;
} }
if (retries >= 40) { if (retries >= 6) {
System.out.println("aborting!"); System.out.println("aborting!");
fail("Project import is taking too long, failing test."); fail("Project import is taking too long, failing test.");
} }
try { try {
Thread.sleep(1000); Thread.sleep(10000);
} catch (InterruptedException e) { } catch (InterruptedException e) {
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment