File tree Expand file tree Collapse file tree 3 files changed +5
-10
lines changed
src/org/openqa/selenium/grid/node/config
test/org/openqa/selenium/grid/node/config Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ public class NodeFlags implements HasRoles {
245245 @ Parameter (
246246 names = {"--delete-session-on-ui" },
247247 arity = 1 ,
248- description = "Enable capability to support deleting session on Grid UI. True by default" )
248+ description = "Enable capability to support deleting session on Grid UI. False by default" )
249249 @ ConfigValue (section = NODE_SECTION , name = "delete-session-on-ui" , example = "true" )
250250 public Boolean deleteSessionOnUi = DEFAULT_DELETE_SESSION_ON_UI ;
251251
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ public class NodeOptions {
7777 public static final int DEFAULT_SESSION_TIMEOUT = 300 ;
7878 public static final int DEFAULT_DRAIN_AFTER_SESSION_COUNT = 0 ;
7979 public static final int DEFAULT_CONNECTION_LIMIT = 10 ;
80- public static final boolean DEFAULT_DELETE_SESSION_ON_UI = true ;
80+ public static final boolean DEFAULT_DELETE_SESSION_ON_UI = false ;
8181 public static final boolean DEFAULT_ENABLE_CDP = true ;
8282 public static final boolean DEFAULT_ENABLE_BIDI = true ;
8383 static final String NODE_SECTION = "node" ;
Original file line number Diff line number Diff line change @@ -768,7 +768,7 @@ void testIsVncEnabledAcceptSingleEnvVar() {
768768 void deleteSessionOnUiIsEnabledByDefault () {
769769 Config config = new MapConfig (singletonMap ("node" , singletonMap ("detect-drivers" , "false" )));
770770 NodeOptions nodeOptions = new NodeOptions (config );
771- assertThat (nodeOptions .isSessionDeletedOnUi ()).isTrue ();
771+ assertThat (nodeOptions .isSessionDeletedOnUi ()).isFalse ();
772772 }
773773
774774 @ Test
@@ -864,13 +864,8 @@ void deleteSessionOnUiCapabilityIsAddedByDefault() {
864864 });
865865
866866 assertThat (reported )
867- .filteredOn (capabilities -> capabilities .getCapability ("se:deleteSessionOnUi" ) != null )
868- .hasSize (reported .size ());
869-
870- assertThat (reported )
871- .allMatch (
872- capabilities ->
873- Boolean .TRUE .equals (capabilities .getCapability ("se:deleteSessionOnUi" )));
867+ .filteredOn (capabilities -> capabilities .getCapability ("se:deleteSessionOnUi" ) == null )
868+ .hasSize (reported .size ());
874869 }
875870
876871 private Condition <? super List <? extends Capabilities >> supporting (String name ) {
You can’t perform that action at this time.
0 commit comments