Skip to content

Commit 530a08d

Browse files
committed
[grid] cleanUpCycle option can be specified for a node too
1 parent ba7ad22 commit 530a08d

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

java/server/src/org/openqa/grid/internal/utils/configuration/GridConfiguration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ public GridConfiguration(GridJsonConfiguration jsonConfig) {
7575

7676
void merge(CommonGridCliOptions cliConfig) {
7777
super.merge(cliConfig);
78+
ofNullable(cliConfig.getCleanUpCycle()).ifPresent(v -> cleanUpCycle = v);
7879
ofNullable(cliConfig.getServlets()).ifPresent(v -> servlets = v);
7980
ofNullable(cliConfig.getWithoutServlets()).ifPresent(v -> withoutServlets = v);
8081
ofNullable(cliConfig.getCustom()).ifPresent(v -> custom = v);

java/server/src/org/openqa/grid/internal/utils/configuration/GridHubConfiguration.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ public GridHubConfiguration(GridHubCliOptions cliConfig) {
9797
this(ofNullable(cliConfig.getConfigFile()).map(HubJsonConfiguration::loadFromResourceOrFile)
9898
.orElse(DEFAULT_CONFIG_FROM_JSON));
9999
super.merge(cliConfig);
100-
ofNullable(cliConfig.getCleanUpCycle()).ifPresent(v -> cleanUpCycle = v);
101100
ofNullable(cliConfig.getNewSessionWaitTimeout()).ifPresent(v -> newSessionWaitTimeout = v);
102101
ofNullable(cliConfig.getThrowOnCapabilityNotPresent()).ifPresent(v -> throwOnCapabilityNotPresent = v);
103102
ofNullable(cliConfig.getRegistry()).ifPresent(v -> registry = v);

0 commit comments

Comments
 (0)