Skip to content

Commit

Permalink
[grid] Improving test configuration to use only the driver needed
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Jul 13, 2021
1 parent cc4afff commit 74745cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
package org.openqa.selenium.grid.router;

import com.google.common.collect.ImmutableMap;

import org.junit.BeforeClass;
import org.junit.Test;
import org.openqa.selenium.Capabilities;
import org.openqa.selenium.ImmutableCapabilities;
import org.openqa.selenium.MutableCapabilities;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeOptions;
Expand All @@ -42,7 +42,6 @@
import org.openqa.selenium.support.devtools.NetworkInterceptor;
import org.openqa.selenium.testing.drivers.Browser;

import java.io.IOException;
import java.io.StringReader;
import java.util.HashMap;
import java.util.Map;
Expand Down Expand Up @@ -70,8 +69,7 @@ public void ensureBasicFunctionality() throws InterruptedException {
browser.getCapabilities(),
new TomlConfig(new StringReader(
"[node]\n" +
"detect-drivers = true\n" +
"drivers = " + browser.displayName())));
"driver-implementation = " + browser.displayName())));

Server<?> server = new NettyServer(
new BaseServerOptions(new MapConfig(ImmutableMap.of())),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void setupServers() {
browser.getCapabilities(),
new TomlConfig(new StringReader(
"[node]\n" +
"drivers = " + browser.displayName())));
"driver-implementation = " + browser.displayName())));
tearDowns.add(deployment);

server = deployment.getServer();
Expand Down

0 comments on commit 74745cf

Please sign in to comment.