Retry failing integration tests

This uses 'RetryingTest' from junit jupiter to retry integration tests
that are known to fail from time to time. We explicitly mark single
tests in contrast to set a global retry to be able to trace those,
whenever this is intended.
This commit is contained in:
Florian Scholdei
2025-02-03 15:38:48 +01:00
parent 844dc394e9
commit dd7b07aeaf

View File

@@ -122,7 +122,7 @@ class DiffITCase {
assertDiffsAreEqual(svnDiff, expected);
}
@Test
@RetryingTest(3)
void svnUpdateFileDiffShouldBeConvertedToGitDiff() throws IOException {
RepositoryUtil.createAndCommitFile(svnRepositoryClient, ADMIN_USERNAME, "a.txt", "content of a");
RepositoryUtil.createAndCommitFile(gitRepositoryClient, ADMIN_USERNAME, "a.txt", "content of a");
@@ -206,7 +206,7 @@ class DiffITCase {
}
@Test
@RetryingTest(3)
void svnRenameChangesDiffShouldBeConvertedToGitDiff() throws IOException, URISyntaxException {
String fileName = "a.txt";
RepositoryUtil.createAndCommitFile(svnRepositoryClient, ADMIN_USERNAME, fileName, "content of a");