]> source.dussan.org Git - jgit.git/commit
LocalDiskRepositoryTestCase: Prevent duplicates in list of repos to close 61/89661/1
authorDavid Pursehouse <david.pursehouse@gmail.com>
Fri, 27 Jan 2017 02:32:18 +0000 (11:32 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Fri, 27 Jan 2017 07:00:06 +0000 (16:00 +0900)
commitd69a829bdb6a79824804d4d56c4ac97ebe78bb30
treeebbfd405ee186e857da6d391a7f967670e97e424
parent2eb1bebd605852b7ef240e700943dfba7c0a1b3f
LocalDiskRepositoryTestCase: Prevent duplicates in list of repos to close

Change the "toClose" list to a set, which will not allow duplicate
entries. This reduces the number of false positive logs about corrupt
use count due to the same repository being closed more than once during
teardown.

Change-Id: I5ab0ff8b56e7f2b2c7aab5274d957708d26f42c5
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java