Skip to content

Commit

Permalink
Several minor smell-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bonigarcia committed Feb 15, 2022
1 parent ddcc949 commit 7e2993b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/github/bonigarcia/wdm/WebDriverManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,7 @@ protected List<URL> getDriversFromMirror(URL driverUrl,
}

private List<URL> getMirrorUrls(URL driverUrl, String versionPath)
throws MalformedURLException, IOException {
throws IOException {
List<URL> urls;
HttpGet get = getHttpClient()
.createHttpGet(new URL(driverUrl, versionPath));
Expand All @@ -1374,7 +1374,7 @@ private List<URL> getMirrorUrls(URL driverUrl, String versionPath)
Gson gson = gsonBuilder.create();
NpmMirror[] releaseArray = gson.fromJson(reader, NpmMirror[].class);

urls = Arrays.stream(releaseArray).map(release -> release.getUrl())
urls = Arrays.stream(releaseArray).map(NpmMirror::getUrl)
.collect(Collectors.toList());
}
return urls;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import java.net.URL;
import java.util.List;

import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import io.github.bonigarcia.wdm.WebDriverManager;
Expand Down Expand Up @@ -74,6 +75,7 @@ void testMirrorException() {
.isInstanceOf(WebDriverManagerException.class);
}

@Disabled("Too slow")
@Test
void testMirrorDriverList() {
List<String> driverVersions = WebDriverManager.chromedriver()
Expand Down

0 comments on commit 7e2993b

Please sign in to comment.