File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
core/src/test/java/io/grpc/internal Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -382,7 +382,7 @@ public void sizeEnforcingInputStream_readByteAboveLimit() throws IOException {
382382 }
383383 });
384384 assertThat (e ).hasMessageThat ()
385- .contains ("RESOURCE_EXHAUSTED: Decompressed gRPC message exceeds" );
385+ .isEqualTo ("RESOURCE_EXHAUSTED: Decompressed gRPC message exceeds maximum size 2 " );
386386 } finally {
387387 stream .close ();
388388 }
@@ -427,7 +427,7 @@ public void sizeEnforcingInputStream_readAboveLimit() throws IOException {
427427 StatusRuntimeException e = assertThrows (StatusRuntimeException .class ,
428428 () -> stream .read (buf , 0 , buf .length ));
429429 assertThat (e ).hasMessageThat ()
430- .contains ("RESOURCE_EXHAUSTED: Decompressed gRPC message exceeds" );
430+ .isEqualTo ("RESOURCE_EXHAUSTED: Decompressed gRPC message exceeds maximum size 2 " );
431431 } finally {
432432 stream .close ();
433433 }
@@ -469,7 +469,7 @@ public void sizeEnforcingInputStream_skipAboveLimit() throws IOException {
469469 try {
470470 StatusRuntimeException e = assertThrows (StatusRuntimeException .class , () -> stream .skip (4 ));
471471 assertThat (e ).hasMessageThat ()
472- .contains ("RESOURCE_EXHAUSTED: Decompressed gRPC message exceeds" );
472+ .isEqualTo ("RESOURCE_EXHAUSTED: Decompressed gRPC message exceeds maximum size 2 " );
473473 } finally {
474474 stream .close ();
475475 }
You can’t perform that action at this time.
0 commit comments