Skip to content

Commit a492c1a

Browse files
Mattia Bertorellofacchinm
authored andcommitted
Fix test about the contributions downloader
1 parent 1d21f0c commit a492c1a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/test/cc/arduino/contributions/GzippedJsonDownloaderTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ public void tearDown() throws Exception {
3838

3939
@Test
4040
public void testJsonDownload() throws Exception {
41-
new GZippedJsonDownloader(downloader, new URL("http://downloads.arduino.cc/libraries/library_index.json"), new URL("http://downloads.arduino.cc/libraries/library_index.json.gz")).download(tempFile, new MultiStepProgress(1), "", new NoopProgressListener());
41+
new GZippedJsonDownloader(downloader, new URL("http://downloads.arduino.cc/libraries/library_index.json"),
42+
new URL("http://downloads.arduino.cc/libraries/library_index.json.gz"))
43+
.download(tempFile, new MultiStepProgress(1), "", new NoopProgressListener(), true);
4244

4345
InputStream indexIn = new FileInputStream(tempFile);
4446
ObjectMapper mapper = new ObjectMapper();

app/test/cc/arduino/contributions/JsonDownloaderTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ public void tearDown() throws Exception {
3838

3939
@Test
4040
public void testJsonDownload() throws Exception {
41-
new JsonDownloader(downloader, new URL("http://downloads.arduino.cc/libraries/library_index.json")).download(tempFile, new MultiStepProgress(1), "", new NoopProgressListener());
41+
new JsonDownloader(downloader, new URL("http://downloads.arduino.cc/libraries/library_index.json"))
42+
.download(tempFile, new MultiStepProgress(1), "", new NoopProgressListener(), true);
4243

4344
InputStream indexIn = new FileInputStream(tempFile);
4445
ObjectMapper mapper = new ObjectMapper();

0 commit comments

Comments
 (0)