This is an automated email from the ASF dual-hosted git repository.

chesnay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git

commit 12b41d0d58dfdd75ca2a1a9ca7f72300574c97a5
Author: Chesnay Schepler <[email protected]>
AuthorDate: Wed Dec 1 12:16:17 2021 +0100

    [FLINK-24995][tests] Migrate tests to ConsoleReporter#finish
    
    'ConsoleReporter#finish' behaves just like '#printSummary', but is also 
supported in later versions.
    Additionally, we now fail the test if the compiler reported any 
warnings/errors, as without it the summary business didn't provide a benefit in 
the first place.
---
 .../api/scala/typeutils/EnumValueSerializerCompatibilityTest.scala   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/flink-scala/src/test/scala/org/apache/flink/api/scala/typeutils/EnumValueSerializerCompatibilityTest.scala
 
b/flink-scala/src/test/scala/org/apache/flink/api/scala/typeutils/EnumValueSerializerCompatibilityTest.scala
index b077933c5f7..df2644c4a70 100644
--- 
a/flink-scala/src/test/scala/org/apache/flink/api/scala/typeutils/EnumValueSerializerCompatibilityTest.scala
+++ 
b/flink-scala/src/test/scala/org/apache/flink/api/scala/typeutils/EnumValueSerializerCompatibilityTest.scala
@@ -189,6 +189,9 @@ object EnumValueSerializerCompatibilityTest {
 
     run.compile(List(file.getAbsolutePath))
 
-    reporter.printSummary()
+    if (reporter.hasWarnings || reporter.hasErrors) {
+      reporter.finish()
+      fail("Scala compiler reported warnings or errors")
+    }
   }
 }

Reply via email to