[releng] Fix test failures
commit6722dd695680ac4cd1e53007c38a788d704615d5
authorThomas Wolf <thomas.wolf@paranor.ch>
Tue, 7 Aug 2018 08:01:38 +0000 (7 10:01 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Tue, 7 Aug 2018 08:01:38 +0000 (7 10:01 +0200)
tree0d8c52b4f48c4eadbc680c1b57d54ac23ddac7e6
parent9a2209c3b02a34e8fcd409ea897f9743905cc543
[releng] Fix test failures

StagingViewTest also uses the git repositories view and therefore
must use the same mechanisms as the other git repositories view
tests to avoid leaking references to repository tree nodes across
tests.

Also fix an NPE during tests in FileDiffContentProvider: make sure
the UI update doesn't run if the content provider has been disposed
already.

Change-Id: Ib08ce78e4f76207adfa0920b3cfa94d55186a706
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/stagview/AbstractStagingViewTestCase.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/FileDiffContentProvider.java