From 6a5508632759f577c242bee6182325a8cb820ec3 Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Tue, 12 Mar 2013 20:08:16 -0700 Subject: [PATCH] Don't reuse the same progress monitor across test runs. --- .../cdt/ui/tests/refactoring/utils/DefinitionFinderTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/refactoring/utils/DefinitionFinderTest.java b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/refactoring/utils/DefinitionFinderTest.java index 7d9ff572f11..4d08478705d 100644 --- a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/refactoring/utils/DefinitionFinderTest.java +++ b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/refactoring/utils/DefinitionFinderTest.java @@ -88,7 +88,7 @@ public class DefinitionFinderTest extends RefactoringTestBase { for (IASTDeclaration declaration : ast.getDeclarations()) { if (declaration instanceof IASTSimpleDeclaration) { IASTName name = ((IASTSimpleDeclaration) declaration).getDeclarators()[0].getName(); - assertNotNull(DefinitionFinder.getDefinition(name, refactoringContext, NULL_PROGRESS_MONITOR)); + assertNotNull(DefinitionFinder.getDefinition(name, refactoringContext, npm())); } } } finally {