diff --git a/dubbo-serialization/dubbo-serialization-test/src/test/java/org/apache/dubbo/common/serialize/fst/FstObjectOutputTest.java b/dubbo-serialization/dubbo-serialization-test/src/test/java/org/apache/dubbo/common/serialize/fst/FstObjectOutputTest.java index ecf2335d88f..8126b6f3fe6 100644 --- a/dubbo-serialization/dubbo-serialization-test/src/test/java/org/apache/dubbo/common/serialize/fst/FstObjectOutputTest.java +++ b/dubbo-serialization/dubbo-serialization-test/src/test/java/org/apache/dubbo/common/serialize/fst/FstObjectOutputTest.java @@ -18,6 +18,7 @@ import org.apache.dubbo.common.serialize.model.AnimalEnum; import org.apache.dubbo.common.serialize.model.person.FullAddress; +import org.junit.After; import org.junit.Before; import org.junit.Test; @@ -41,6 +42,11 @@ public void setUp() { this.fstObjectOutput = new FstObjectOutput(byteArrayOutputStream); } + @After + public void tearDown() throws IOException { + new FstObjectInput(new ByteArrayInputStream(new byte[]{0})); + } + @Test public void testWriteBool() throws IOException {