Skip to content

Commit 07b3b90

Browse files
matthijskooijmancmaglie
authored andcommitted
AbstractWithPreferencesTest: Disable update checks
This prevents the Arduino instance in tests from checking for updates. I have not seen any problems resulting from this, but disabling network requests is generally a good idea in tests (to prevent external factors from influencing the test results). In addition to update checks, there is also the CloudBoardResolver that could do network requests, but there does not seem to be a preference for disabling that.
1 parent 7bc6efa commit 07b3b90

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: app/test/processing/app/AbstractWithPreferencesTest.java

+2
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ public void init() throws Exception {
6767
PreferencesData.set("settings.path", settingsDir.toString());
6868
// Do not read or write the default ~/Arduino sketchbook
6969
PreferencesData.set("sketchbook.path", sketchbookDir.toString());
70+
// Do not perform any update checks
71+
PreferencesData.set("update.check", sketchbookDir.toString());
7072
// Write the defaults, with these changes to file. This allows them
7173
// to be reloaded when creating a Base instance (see getBaseArgs()
7274
// below).

0 commit comments

Comments
 (0)