Test stability: really shut down repositories
commit2715a5c146addf9174d02eb7cad86b7d1a298b86
authorThomas Wolf <thomas.wolf@paranor.ch>
Thu, 5 May 2016 12:09:16 +0000 (5 14:09 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Thu, 5 May 2016 13:35:53 +0000 (5 15:35 +0200)
tree8bc7b9ba5fe032f5f263efe8645017122107e836
parentc235e4c3fba4da7ef76fa7a4a2f658df1cc0dc32
Test stability: really shut down repositories

Otherwise, repositories from previous tests may remain registered, and
may at some later point found to have gone and a new refresh of the
repo view may be scheduled.

As a result, we may have asynchronous refreshes that occur during SWT
bot tests, and tree nodes disappear at unpredictable moments.

Also: in commitNonWSChangesTest, repo view is opened after a commit and
thus must also wait until the repo view refresh is over before trying to
find tree nodes.

Change-Id: I43ff9bee19fb4983cd44486a4085640f2dac0497
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java
org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/CommitNonWSChangesTest.java