Skip to content

Commit

Permalink
Improve aggregationTemporalityUseEnvVarWhenConfigNotSet()
Browse files Browse the repository at this point in the history
  • Loading branch information
izeye committed Feb 19, 2024
1 parent c8f6f4c commit 30972e9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ void aggregationTemporalityConfigTakesPrecedenceOverEnvVars() throws Exception {
@Test
void aggregationTemporalityUseEnvVarWhenConfigNotSet() throws Exception {
OtlpConfig config = k -> null;
withEnvironmentVariable("OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE", "CUMULATIVE")
.execute(() -> assertThat(config.aggregationTemporality()).isEqualTo(AggregationTemporality.CUMULATIVE));
withEnvironmentVariable("OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE", "DELTA")
.execute(() -> assertThat(config.aggregationTemporality()).isEqualTo(AggregationTemporality.DELTA));
}

@Test
Expand Down

0 comments on commit 30972e9

Please sign in to comment.