vibhatha commented on code in PR #39529:
URL: https://github.com/apache/arrow/pull/39529#discussion_r1462672275
##########
java/flight/flight-core/src/test/java/org/apache/arrow/flight/TestFlightService.java:
##########
@@ -149,12 +150,14 @@ public FlightInfo getFlightInfo(CallContext context,
FlightInfo flightInfo = client.getInfo(FlightDescriptor.path("test"));
Assertions.assertEquals(Optional.empty(),
flightInfo.getSchemaOptional());
Assertions.assertEquals(new Schema(Collections.emptyList()),
flightInfo.getSchema());
- Assertions.assertArrayEquals(flightInfo.getAppMetadata(),
"foo".getBytes());
+ Assertions.assertArrayEquals(flightInfo.getAppMetadata(),
"foo".getBytes(StandardCharsets.UTF_8));
Exception e = Assertions.assertThrows(
FlightRuntimeException.class,
() -> client.getSchema(FlightDescriptor.path("test")));
- Assertions.assertEquals("No schema is present in FlightInfo",
e.getMessage());
+ String expectedMessage =
"org.apache.arrow.flight.FlightRuntimeException: INVALID_ARGUMENT:" +
Review Comment:
Ah got it. Thanks David.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]