Skip to content

Commit 4c9ed80

Browse files
committed
Clear workspace preferences before test
Stale workspace preferences lead to test errors when run with tycho.
1 parent 15871ef commit 4c9ed80

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/com.eclipsesource.jshint.ui.test/src/com/eclipsesource/jshint/ui/internal/builder/JSHintBuilderVisitor_Test.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import org.junit.After;
1919
import org.junit.Before;
2020
import org.junit.Test;
21+
import org.osgi.service.prefs.BackingStoreException;
2122
import org.osgi.service.prefs.Preferences;
2223

2324
import com.eclipsesource.jshint.ui.internal.preferences.EnablementPreferences;
@@ -35,7 +36,8 @@ public class JSHintBuilderVisitor_Test {
3536
private IProgressMonitor monitor;
3637

3738
@Before
38-
public void setUp() {
39+
public void setUp() throws BackingStoreException {
40+
PreferencesFactory.getWorkspacePreferences().clear();
3941
project = createProject( "test" );
4042
file = createFile( project, "/test.js", "test content" );
4143
monitor = new NullProgressMonitor();

0 commit comments

Comments
 (0)