Skip to content

Commit c287f01

Browse files
committed
[grid] Fixing failing test in GitHub actions
1 parent 430c7a4 commit c287f01

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

java/server/test/org/openqa/selenium/grid/node/config/NodeOptionsTest.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,11 @@ public void driversCanBeConfigured() {
211211
"detect-drivers = false",
212212
"[[node.driver-configuration]]",
213213
"name = \"Chrome Beta\"",
214-
"max-sessions = 2",
214+
"max-sessions = 1",
215215
String.format("stereotype = \"%s\"", chromeCaps.toString().replace("\"", "\\\"")),
216216
"[[node.driver-configuration]]",
217217
"name = \"Firefox Nightly\"",
218-
"max-sessions = 3",
218+
"max-sessions = 2",
219219
String.format("stereotype = \"%s\"", firefoxCaps.toString().replace("\"", "\\\""))
220220
};
221221
Config config = new TomlConfig(new StringReader(String.join("\n", rawConfig)));
@@ -237,7 +237,7 @@ public void driversCanBeConfigured() {
237237
.get("binary").equalsIgnoreCase(chromeLocation));
238238
assertThat(reported)
239239
.filteredOn(capabilities -> capabilities.asMap().containsKey(ChromeOptions.CAPABILITY))
240-
.hasSize(2);
240+
.hasSize(1);
241241

242242
//noinspection unchecked
243243
assertThat(reported)
@@ -248,7 +248,7 @@ public void driversCanBeConfigured() {
248248
.get("binary").equalsIgnoreCase(firefoxLocation));
249249
assertThat(reported)
250250
.filteredOn(capabilities -> capabilities.asMap().containsKey(FirefoxOptions.FIREFOX_OPTIONS))
251-
.hasSize(3);
251+
.hasSize(2);
252252
}
253253

254254
@Test

0 commit comments

Comments
 (0)