Skip to content

Commit c91ca1b

Browse files
committed
add GrpcChannelPropertiesNoUnitTest
1 parent 2a21adb commit c91ca1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

grpc-client-spring-boot-starter/src/test/java/net/devh/boot/grpc/client/config/GrpcChannelPropertiesNoUnitTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
@ExtendWith(SpringExtension.class)
3434
@SpringBootTest(properties = {
3535
"grpc.client.test.keepAliveTime=42",
36-
"grpc.client.test.maxInboundMessageSize=5242880"
36+
"grpc.client.test.maxInboundMessageSize=5242880",
37+
"grpc.client.test.maxInboundMetadataSize=3145728"
3738
})
3839
class GrpcChannelPropertiesNoUnitTest {
3940

@@ -45,6 +46,7 @@ void test() {
4546
final GrpcChannelProperties properties = this.grpcChannelsProperties.getChannel("test");
4647
assertEquals(Duration.ofSeconds(42), properties.getKeepAliveTime());
4748
assertEquals(DataSize.ofMegabytes(5), properties.getMaxInboundMessageSize());
49+
assertEquals(DataSize.ofMegabytes(3), properties.getMaxInboundMetadataSize());
4850
}
4951

5052
}

0 commit comments

Comments
 (0)