Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
izeye authored and shakuzen committed Feb 5, 2024
1 parent cb05029 commit a1b1ec7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,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 @@ -368,8 +368,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 a1b1ec7

Please sign in to comment.