Skip to content

Commit

Permalink
fixes build errors
Browse files Browse the repository at this point in the history
Signed-off-by: Gagan Juneja <gjjuneja@amazon.com>
  • Loading branch information
Gagan Juneja committed Mar 15, 2024
1 parent 895fc00 commit 18e0193
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ public void testHistogram() {
assertSame(mockHistogram, histogram);
}

public void testObservableGauge() {
@SuppressWarnings("unchecked")
public void testGauge() {
Closeable mockCloseable = mock(Closeable.class);
when(
defaultMeterRegistry.createGauge(any(String.class), any(String.class), any(String.class), any(Supplier.class), any(Tags.class))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ public void testHistogram() {
verify(mockOTelDoubleHistogram).record(2.0, OTelAttributesConverter.convert(tags));
}

public void testObservableGauge() throws Exception {
@SuppressWarnings({ "rawtypes", "unchecked" })
public void testGauge() throws Exception {
String observableGaugeName = "test-gauge";
String description = "test";
String unit = "1";
Expand Down

0 comments on commit 18e0193

Please sign in to comment.