diff --git a/connector/connect/client/jvm/src/test/scala/org/apache/spark/sql/test/RemoteSparkSession.scala b/connector/connect/client/jvm/src/test/scala/org/apache/spark/sql/test/RemoteSparkSession.scala index 3444e2d7544e0..8041c2a4a1328 100644 --- a/connector/connect/client/jvm/src/test/scala/org/apache/spark/sql/test/RemoteSparkSession.scala +++ b/connector/connect/client/jvm/src/test/scala/org/apache/spark/sql/test/RemoteSparkSession.scala @@ -83,6 +83,9 @@ object SparkConnectServerUtils { if (isDebug) { builder.redirectError(Redirect.INHERIT) builder.redirectOutput(Redirect.INHERIT) + } else { + builder.redirectError(Redirect.DISCARD) + builder.redirectOutput(Redirect.DISCARD) } val process = builder.start()