Fix grpc latest dep tests (#10014)

This commit is contained in:
Lauri Tulmin 2023-12-06 11:19:35 +02:00 committed by GitHub
parent 600b14db8c
commit 338b03efb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -747,7 +747,10 @@ public abstract class AbstractGrpcTest {
t -> {
// gRPC doesn't appear to propagate server exceptions that are thrown, not onError.
assertThat(t.getStatus().getCode()).isEqualTo(Status.UNKNOWN.getCode());
assertThat(t.getStatus().getDescription()).isNull();
assertThat(t.getStatus().getDescription())
.satisfiesAnyOf(
a -> assertThat(a).isNull(),
a -> assertThat(a).isEqualTo("Application error processing RPC"));
});
testing()