File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 30
30
31
31
public class RacyGitTests extends RepositoryTestCase {
32
32
33
+ /**
34
+ * This test is inherently flaky in nature since using clocks in a computer
35
+ * to determine file modifications in a filesystem from Java is difficult
36
+ * and depends on many factors and we can't test all combinations
37
+ *
38
+ * If this test fails on your computer, don't worry but let us know if you
39
+ * are willing to provide details which may help to further improve handling
40
+ * of the racy git problem in JGit.
41
+ *
42
+ * Despite not being completely reproducible this test is still useful to
43
+ * detect regressions when running this test repeatedly on the same
44
+ * OS/filesystem/Java version (which we do on the CI used to build JGit).
45
+ *
46
+ * @see "https://git-scm.com/docs/racy-git"
47
+ * @see "https://www.youtube.com/watch?v=m44cAozuLNI"
48
+ */
33
49
@ Test
34
50
public void testRacyGitDetection () throws Exception {
35
51
// Reset to force creation of index file
You can’t perform that action at this time.
0 commit comments