Commit ccaa8f51 authored by Greg Messner's avatar Greg Messner
Browse files

Fixed testTriggerHousekeeping() if already triggered.

parent fe23da29
......@@ -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;
}
}
}
}
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