Skip to content

Commit

Permalink
Remove flakiness in WavefrontMeterRegistryTest.publishMetric() (#2389)
Browse files Browse the repository at this point in the history
  • Loading branch information
izeye authored Dec 23, 2020
1 parent e3da9e7 commit 0fbb090
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public String source() {
void publishMetric() throws IOException {
Meter.Id id = registry.counter("name").getId();
long time = System.currentTimeMillis();
registry.publishMetric(id, null, System.currentTimeMillis(), 1d);
registry.publishMetric(id, null, time, 1d);
verify(wavefrontSender, times(1)).sendMetric("name", 1d, time, "host", Collections.emptyMap());
verifyNoMoreInteractions(wavefrontSender);
}
Expand Down

0 comments on commit 0fbb090

Please sign in to comment.