Skip to content

Commit

Permalink
Fix AgentConfigImplTest
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonjkeller committed Apr 11, 2022
1 parent f0364eb commit 57443e5
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1255,11 +1255,10 @@ public void getApplicationLoggingConfig() {
AgentConfig config = AgentConfigImpl.createAgentConfig(localMap);

assertEquals(ApplicationLoggingConfigImpl.DEFAULT_ENABLED, config.getApplicationLoggingConfig().isEnabled());
assertTrue(config.getApplicationLoggingConfig().isForwardingEnabled());
assertFalse(config.getApplicationLoggingConfig().isForwardingEnabled());
assertEquals(NOT_DEFAULT_MAX_SAMPLES_STORED, config.getApplicationLoggingConfig().getMaxSamplesStored());
assertFalse(config.getApplicationLoggingConfig().isMetricsEnabled());
assertTrue(config.getApplicationLoggingConfig().isLocalDecoratingEnabled());

}

@Test
Expand All @@ -1268,16 +1267,14 @@ public void getApplicationLoggingConfigDefaults() {
AgentConfig config = AgentConfigImpl.createAgentConfig(localMap);

assertTrue(config.getApplicationLoggingConfig().isEnabled());
assertFalse(config.getApplicationLoggingConfig().isForwardingEnabled());
assertTrue(config.getApplicationLoggingConfig().isForwardingEnabled());
assertEquals(ApplicationLoggingForwardingConfig.DEFAULT_MAX_SAMPLES_STORED, config.getApplicationLoggingConfig().getMaxSamplesStored());
assertTrue(config.getApplicationLoggingConfig().isMetricsEnabled());
assertFalse(config.getApplicationLoggingConfig().isLocalDecoratingEnabled());

}

@Test
public void getApplicationLoggingConfigSystemProperty() {

String key = ApplicationLoggingConfigImpl.SYSTEM_PROPERTY_ROOT + ApplicationLoggingConfigImpl.ENABLED;
String val = String.valueOf(!ApplicationLoggingConfigImpl.DEFAULT_ENABLED);

Expand Down

0 comments on commit 57443e5

Please sign in to comment.