Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Currently, we added a JUnit Rule TerminalStreamsResource to replace System.in and System.out stream to get the output of SqlClient. However, this is not safe, especially used by multiple tests.
We should refactor SqlClient to expose a new testing purpose main method which can pass in custom InputStream and OutputStream.
Attachments
Issue Links
- is fixed by
-
FLINK-22104 SqlClientTest.testExecuteSqlFile fail
- Closed