Skip to content

Commit e1302cb

Browse files
chore: add more tests
1 parent 1f28fed commit e1302cb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/test/java/com/influxdb/v3/client/query/QueryOptionsTest.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,11 @@ void setInboundMessageSizeLarge() throws Exception {
182182

183183
@Test
184184
void grpcCallOptionDefaultOptions() {
185-
GrpcCallOption grpcCallOption = new GrpcCallOption.Builder().build();
186-
Assertions.assertThat(grpcCallOption.getMaxInboundMessageSize())
187-
.isEqualTo(Integer.MAX_VALUE);
185+
QueryOptions queryOptions = new QueryOptions("test");
186+
queryOptions.setGrpcCallOption(new GrpcCallOption.Builder().build());
187+
Assertions.assertThat(queryOptions.grpcCallOption()).isNotNull();
188+
Assertions.assertThat(queryOptions.grpcCallOption()
189+
.getMaxInboundMessageSize()).isEqualTo(Integer.MAX_VALUE);
188190
}
189191

190192
@Test

0 commit comments

Comments
 (0)