Skip to content

Commit

Permalink
update to cjr-api rc
Browse files Browse the repository at this point in the history
  • Loading branch information
carterkozak committed Oct 8, 2024
1 parent 63cc51f commit b794a45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static boolean isRetryableQos(Response result) {
return false;
}
QosReason reason = DialogueQosReasonDecoder.parse(result);
return !RetryHint.PROPAGATE.equals(reason.retryHint().orElse(null));
return !RetryHint.DO_NOT_RETRY.equals(reason.retryHint().orElse(null));
}

static boolean isServerErrorRange(Response response) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ public void testQos503() {
public void testQos503WithMetadata() {
Response response = TestResponse.withBody(SERIALIZED_EXCEPTION)
.code(503)
.withHeader("Qos-Retry-Hint", "PROPAGATE")
.withHeader("Qos-Due-To", "CUSTOM");
.withHeader("Qos-Retry-Hint", "do-not-retry")
.withHeader("Qos-Due-To", "custom");
assertThat(decoder.isError(response)).isTrue();

RuntimeException result = decoder.decode(response);
Expand All @@ -119,7 +119,7 @@ public void testQos503WithMetadata() {
.isEqualTo(QosReason.builder()
.from(QOS_REASON)
.dueTo(DueTo.CUSTOM)
.retryHint(RetryHint.PROPAGATE)
.retryHint(RetryHint.DO_NOT_RETRY)
.build());
});
}
Expand Down

0 comments on commit b794a45

Please sign in to comment.