Skip to content

Commit

Permalink
Apply gh-4040
Browse files Browse the repository at this point in the history
  • Loading branch information
izeye committed Aug 21, 2023
1 parent 90e3754 commit a4de8e8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ void recordRequestRetriesWithSuccess(@WiremockResolver.Wiremock WireMockServer s
try (CloseableHttpClient client = classicClient()) {
executeClassic(client, new HttpGet(server.baseUrl() + "/retry"));
}
assertThat(observationRegistry).hasAnObservationWithAKeyValue(OUTCOME.asString(), "SUCCESS")
.hasAnObservationWithAKeyValue(OUTCOME.asString(), "SERVER_ERROR");
assertThat(observationRegistry).hasAnObservationWithAKeyValue(OUTCOME.withValue("SUCCESS"))
.hasAnObservationWithAKeyValue(OUTCOME.withValue("SERVER_ERROR"));
assertThat(observationRegistry).hasNumberOfObservationsWithNameEqualTo(DEFAULT_METER_NAME, 2);
}

Expand Down Expand Up @@ -364,8 +364,8 @@ void recordRequestRetriesWithSuccess(@WiremockResolver.Wiremock WireMockServer s
SimpleHttpRequest request = SimpleRequestBuilder.get(server.baseUrl() + "/retry").build();
executeAsync(client, request);
}
assertThat(observationRegistry).hasAnObservationWithAKeyValue(OUTCOME.asString(), "SUCCESS")
.hasAnObservationWithAKeyValue(OUTCOME.asString(), "SERVER_ERROR");
assertThat(observationRegistry).hasAnObservationWithAKeyValue(OUTCOME.withValue("SUCCESS"))
.hasAnObservationWithAKeyValue(OUTCOME.withValue("SERVER_ERROR"));
assertThat(observationRegistry).hasNumberOfObservationsWithNameEqualTo(DEFAULT_METER_NAME, 2);
}

Expand Down

0 comments on commit a4de8e8

Please sign in to comment.