]> source.dussan.org Git - jgit.git/commit
Change RacyGitTests to create a racy git situation in a stable way 39/144339/3
authorMasaya Suzuki <masayasuzuki@google.com>
Mon, 24 Dec 2018 03:31:10 +0000 (19:31 -0800)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 19 Jun 2019 08:43:03 +0000 (10:43 +0200)
commitdf637928d2ef4b9ee06af7e37344c7848f870ce4
tree712a099d6c203a35f3ace4f3ca7ba596c2006188
parentf18b5010fcf750e6949e53dca292db9f2b4dc57d
Change RacyGitTests to create a racy git situation in a stable way

By using File#setLastModified, we can create a racy git situation
stably.

Tested with --runs_per_test=100

Bug: 526111
Change-Id: I60b3632d353e19f335668325aa603640be423f58
Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RacyGitTests.java