Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 07b3b90

Browse filesBrowse 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
Copy full SHA for 07b3b90

File tree

1 file changed

+2
-0
lines changed
Filter options

1 file changed

+2
-0
lines changed

‎app/test/processing/app/AbstractWithPreferencesTest.java

Copy file name to clipboardExpand all lines: app/test/processing/app/AbstractWithPreferencesTest.java
+2Lines changed: 2 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.