Skip to content

Commit 6c1a4b8

Browse files
author
jantje
committed
disable the bonjour service and install boards at setup
Bonjour clutters the console
1 parent 623cc80 commit 6c1a4b8

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

io.sloeber.tests/src/io/sloeber/core/UpgradeTest.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
package io.sloeber.core;
22

3-
import static org.junit.Assert.fail;
3+
import static org.junit.Assert.*;
44

55
import org.eclipse.core.resources.IProject;
66
import org.eclipse.core.resources.IWorkspace;
77
import org.eclipse.core.resources.IWorkspaceRoot;
88
import org.eclipse.core.resources.IncrementalProjectBuilder;
99
import org.eclipse.core.resources.ResourcesPlugin;
10+
import org.junit.Before;
1011
import org.junit.Test;
1112

13+
import io.sloeber.core.api.Preferences;
14+
import io.sloeber.providers.Arduino;
15+
1216
/**
1317
* this test assumes it is stared in a clean workspace and not in the UI thread
1418
*
@@ -26,6 +30,16 @@ public class UpgradeTest {
2630
*
2731
* @throws Exception
2832
*/
33+
@Before
34+
public void setup() {
35+
// stop bonjour as it clutters the console log
36+
Preferences.setUseBonjour(false);
37+
Shared.waitForAllJobsToFinish();
38+
// TOFIX: this will have to change into a specific version
39+
// or we will have to add the install based on stored data
40+
Arduino.installLatestAVRBoards();
41+
Shared.waitForAllJobsToFinish();
42+
}
2943

3044
@Test
3145
public void upgradeSingleConfigProjectFromVersion4_3_3() throws Exception {

0 commit comments

Comments
 (0)