From 8e49668a454a06c8b9227522ac4cf53fc3c3f98a Mon Sep 17 00:00:00 2001 From: Albumen Kevin Date: Sun, 5 Jan 2025 20:01:46 +0800 Subject: [PATCH] Disable testWriteUTF on Windows (#15035) --- .../java/org/apache/dubbo/serialization/SerializationTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dubbo-compatible/src/test/java/org/apache/dubbo/serialization/SerializationTest.java b/dubbo-compatible/src/test/java/org/apache/dubbo/serialization/SerializationTest.java index 28a8cb7fff4..4916a74bd94 100644 --- a/dubbo-compatible/src/test/java/org/apache/dubbo/serialization/SerializationTest.java +++ b/dubbo-compatible/src/test/java/org/apache/dubbo/serialization/SerializationTest.java @@ -29,6 +29,8 @@ import org.hamcrest.Matchers; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.condition.DisabledOnOs; +import org.junit.jupiter.api.condition.OS; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.is; @@ -74,6 +76,7 @@ void testObjectInput() throws IOException { } @Test + @DisabledOnOs(OS.WINDOWS) // Charset maynot UTF-8 on Windows JDK 8 ~ 17 void testWriteUTF() throws IOException { myObjectOutput.writeUTF("Pace"); myObjectOutput.writeUTF("和平");