Skip to content

Commit

Permalink
Fix test about the contributions downloader
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattia Bertorello authored and facchinm committed Jul 18, 2019
1 parent 1d21f0c commit a492c1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public void tearDown() throws Exception {

@Test
public void testJsonDownload() throws Exception {
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());
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(), true);

InputStream indexIn = new FileInputStream(tempFile);
ObjectMapper mapper = new ObjectMapper();
Expand Down
3 changes: 2 additions & 1 deletion app/test/cc/arduino/contributions/JsonDownloaderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ public void tearDown() throws Exception {

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

InputStream indexIn = new FileInputStream(tempFile);
ObjectMapper mapper = new ObjectMapper();
Expand Down

0 comments on commit a492c1a

Please sign in to comment.