aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2019-07-12 09:46:25 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2019-07-24 16:21:54 +0200
commitde6df3bdd92fe61cb6d4b648aec07593d2c304f8 (patch)
tree5fa47cd4e505e9150146fedc5b2cac8cd0757279
parent773cbb5f6373dec45a1520666ab6dc5727d34808 (diff)
downloadjgit-de6df3bdd92fe61cb6d4b648aec07593d2c304f8.tar.gz
jgit-de6df3bdd92fe61cb6d4b648aec07593d2c304f8.zip
Repeat RefDirectoryTest.testGetRef_DiscoversModifiedLoose 100 times
This should help to detect if measured fsTimeResolution is too small. Change-Id: Id1f54dbdedb52b17859904e47776fa3a5887b8be Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/RefDirectoryTest.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/RefDirectoryTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/RefDirectoryTest.java
index ac0a34dedf..24e3bc0773 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/RefDirectoryTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/RefDirectoryTest.java
@@ -71,6 +71,7 @@ import org.eclipse.jgit.events.ListenerHandle;
import org.eclipse.jgit.events.RefsChangedEvent;
import org.eclipse.jgit.events.RefsChangedListener;
import org.eclipse.jgit.junit.LocalDiskRepositoryTestCase;
+import org.eclipse.jgit.junit.Repeat;
import org.eclipse.jgit.junit.TestRepository;
import org.eclipse.jgit.lib.AnyObjectId;
import org.eclipse.jgit.lib.Ref;
@@ -644,6 +645,7 @@ public class RefDirectoryTest extends LocalDiskRepositoryTestCase {
assertEquals(B, all.get(HEAD).getObjectId());
}
+ @Repeat(n = 100, abortOnFailure = false)
@Test
public void testGetRef_DiscoversModifiedLoose() throws IOException {
Map<String, Ref> all;