Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
93d3c6df
Commit
93d3c6df
authored
Mar 19, 2020
by
Greg Messner
Browse files
Change wait time when checking export status.
parent
835ec7da
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/test/java/org/gitlab4j/api/TestImportExportApi.java
View file @
93d3c6df
...
...
@@ -97,23 +97,6 @@ public class TestImportExportApi extends AbstractIntegrationTest {
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
public
void
testExportDownloadAndImport
()
throws
GitLabApiException
{
...
...
@@ -135,13 +118,13 @@ public class TestImportExportApi extends AbstractIntegrationTest {
break
;
}
if
(
retries
>=
40
)
{
if
(
retries
>=
6
)
{
System
.
out
.
println
(
"aborting!"
);
fail
(
"Project export is taking too long, failing test."
);
}
try
{
Thread
.
sleep
(
1000
);
Thread
.
sleep
(
1000
0
);
}
catch
(
InterruptedException
e
)
{
}
...
...
@@ -173,13 +156,13 @@ public class TestImportExportApi extends AbstractIntegrationTest {
break
;
}
if
(
retries
>=
40
)
{
if
(
retries
>=
6
)
{
System
.
out
.
println
(
"aborting!"
);
fail
(
"Project import is taking too long, failing test."
);
}
try
{
Thread
.
sleep
(
1000
);
Thread
.
sleep
(
1000
0
);
}
catch
(
InterruptedException
e
)
{
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment