Skip to content

Commit 4b9a334

Browse files
izeyejonatan-ivanov
authored andcommitted
Fix WavefrontMeterRegistryTest.configureDefaultSenderWithCustomConfig() (#2849)
(cherry picked from commit 5e9bcfc)
1 parent 83866c6 commit 4b9a334

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

implementations/micrometer-registry-wavefront/src/test/java/io/micrometer/wavefront/WavefrontMeterRegistryTest.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,9 @@ public Duration step() {
172172
WavefrontClient sender = builder.build();
173173
assertThat(builder).hasFieldOrPropertyWithValue("flushInterval", 15_000L);
174174
assertThat(builder).hasFieldOrPropertyWithValue("flushIntervalTimeUnit", TimeUnit.MILLISECONDS);
175-
assertThat(sender).extracting("reportingService").hasFieldOrPropertyWithValue("uri", URI.create("https://example.com"));
176-
assertThat(sender).extracting("reportingService").hasFieldOrPropertyWithValue("token", "apiToken");
175+
assertThat(sender).extracting("metricsReportingService")
176+
.hasFieldOrPropertyWithValue("uri", URI.create("https://example.com"))
177+
.hasFieldOrPropertyWithValue("token", "apiToken");
177178
assertThat(sender).hasFieldOrPropertyWithValue("batchSize", 20);
178179
}
179180

0 commit comments

Comments
 (0)