Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
hamadodene committed Feb 21, 2024
1 parent f93ccb5 commit 65f587f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public void configure(ConfigurationStore properties) throws ConfigurationNotVali

healthConnectTimeout = properties.getInt("healthmanager.connecttimeout", healthConnectTimeout);
LOG.log(Level.INFO, "healthmanager.connecttimeout={0}", healthConnectTimeout);
if(healthConnectTimeout < 0) {
if (healthConnectTimeout < 0) {
throw new ConfigurationNotValidException("Invalid value '" + this.healthConnectTimeout + "' for healthmanager.connecttimeout. ConnectTimeout cannot be negative");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ public void testChangeBackendHealthManagerConfiguration() throws Exception {

{
Properties configuration = new Properties();
configuration.put("connectionsmanager.connecttimeout", "9479");
configuration.put("healthmanager.connecttimeout", "9479");
server.configureAtBoot(new PropertiesConfigurationStore(configuration));
}
server.start();
Expand All @@ -386,7 +386,7 @@ public void testChangeBackendHealthManagerConfiguration() throws Exception {
// change configuration
{
Properties configuration = new Properties();
configuration.put("connectionsmanager.connecttimeout", "9233");
configuration.put("healthmanager.connecttimeout", "9233");
reloadConfiguration(configuration, server);

assertEquals(9233, server.getBackendHealthManager().getConnectTimeout());
Expand Down

0 comments on commit 65f587f

Please sign in to comment.