Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
ccaa8f51
Commit
ccaa8f51
authored
5 years ago
by
Greg Messner
Browse files
Options
Download
Email Patches
Plain Diff
Fixed testTriggerHousekeeping() if already triggered.
parent
fe23da29
main
5.0.x
5.0.x.jdk17
6.x
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/java/org/gitlab4j/api/TestProjectApi.java
+7
-1
src/test/java/org/gitlab4j/api/TestProjectApi.java
with
7 additions
and
1 deletion
+7
-1
src/test/java/org/gitlab4j/api/TestProjectApi.java
+
7
-
1
View file @
ccaa8f51
...
...
@@ -859,6 +859,12 @@ public class TestProjectApi extends AbstractIntegrationTest {
@Test
public
void
testTriggerHousekeeping
()
throws
GitLabApiException
{
assertNotNull
(
testProject
);
gitLabApi
.
getProjectApi
().
triggerHousekeeping
(
testProject
);
try
{
gitLabApi
.
getProjectApi
().
triggerHousekeeping
(
testProject
);
}
catch
(
GitLabApiException
glae
)
{
if
(!
glae
.
getMessage
().
contains
(
"already triggered"
))
{
throw
glae
;
}
}
}
}
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets