Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 2a748d4

Browse files
committed
Moving the config updater into main, this way the tests don't try to update each time thus slowing the whole build
1 parent 5b4cf27 commit 2a748d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SeleniumGridExtras/src/main/java/com/groupon/seleniumgridextras/SeleniumGridExtras.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
import com.google.gson.GsonBuilder;
4141

4242
import com.groupon.seleniumgridextras.config.RuntimeConfig;
43+
import com.groupon.seleniumgridextras.config.remote.ConfigPuller;
4344
import com.groupon.seleniumgridextras.grid.SelfHealingGrid;
4445
import com.groupon.seleniumgridextras.tasks.ExecuteOSTask;
4546
import com.groupon.seleniumgridextras.tasks.StartGrid;
@@ -63,6 +64,7 @@ public static void main(String[] args) throws Exception {
6364
PropertyConfigurator.configure(SeleniumGridExtras.class.getClassLoader().getResource(filename));
6465
logger.info("Loaded Grid Logger from " + filename);
6566

67+
new ConfigPuller().updateFromRemote();
6668
RuntimeConfig.load();
6769

6870
SelfHealingGrid.checkStatus(RuntimeConfig.getGridExtrasPort(), RuntimeConfig.getConfig());

SeleniumGridExtras/src/main/java/com/groupon/seleniumgridextras/config/RuntimeConfig.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ public static Config load() {
125125
config = DefaultConfig.getDefaultConfig();
126126
logger.debug(config);
127127

128-
new ConfigPuller().updateFromRemote();
129-
130128
ConfigFileReader configFileObject = new ConfigFileReader(configFile);
131129

132130
logger.debug(configFileObject.toHashMap());

0 commit comments

Comments
 (0)