]> source.dussan.org Git - jgit.git/commit
Fix test configuration to run RacyGitTests, and fix testRacyGitDetection 53/93353/4
authorDavid Pursehouse <david.pursehouse@gmail.com>
Sun, 19 Mar 2017 01:23:29 +0000 (10:23 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Sun, 19 Mar 2017 01:56:06 +0000 (10:56 +0900)
commit5e5fbb6035b4bcee6717d8a7417e8f8905d1b563
tree8f2264d2de080477b225c2756e7496245934ae5d
parent4886621261c3b5fa2d9c75fd72d19ac186c9f970
Fix test configuration to run RacyGitTests, and fix testRacyGitDetection

With the filename suffix "Tests", the module was not included in tests
when building with Maven, and without the @Test annotations the tests
didn't get executed under Eclipse or buck test.

testRacyGitDetection was failing because the index file did not exist.

Add the missing configuration, the missing annotations, and add a call
to reset() in testRacyGitDetection to force creation of the index file.

Change-Id: I29dd8f89c36fef4ab40bedce7f4a26bd9b2390e4
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.test/pom.xml
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RacyGitTests.java