Skip to content

Commit 2e7dc85

Browse files
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 8b240c9 commit 2e7dc85

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)