Skip to content

Commit ff29c5a

Browse files
[release/v1.32.x] Fix grpc latest dep tests (#10587)
Co-authored-by: Lauri Tulmin <[email protected]>
1 parent f806ecc commit ff29c5a

File tree

1 file changed

+4
-1
lines changed
  • instrumentation/grpc-1.6/testing/src/main/java/io/opentelemetry/instrumentation/grpc/v1_6

1 file changed

+4
-1
lines changed

instrumentation/grpc-1.6/testing/src/main/java/io/opentelemetry/instrumentation/grpc/v1_6/AbstractGrpcTest.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,10 @@ public void sayHello(
755755
t -> {
756756
// gRPC doesn't appear to propagate server exceptions that are thrown, not onError.
757757
assertThat(t.getStatus().getCode()).isEqualTo(Status.UNKNOWN.getCode());
758-
assertThat(t.getStatus().getDescription()).isNull();
758+
assertThat(t.getStatus().getDescription())
759+
.satisfiesAnyOf(
760+
a -> assertThat(a).isNull(),
761+
a -> assertThat(a).isEqualTo("Application error processing RPC"));
759762
});
760763

761764
testing()

0 commit comments

Comments
 (0)