Skip to content

Commit 437c6ce

Browse files
OrDTestersbeiwei30
authored andcommitted
Fixing test-order dependency for FstObjectInputTest (#2815)
1 parent 38c2151 commit 437c6ce

File tree

1 file changed

+6
-0
lines changed
  • dubbo-serialization/dubbo-serialization-test/src/test/java/org/apache/dubbo/common/serialize/fst

1 file changed

+6
-0
lines changed

dubbo-serialization/dubbo-serialization-test/src/test/java/org/apache/dubbo/common/serialize/fst/FstObjectOutputTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import org.apache.dubbo.common.serialize.model.AnimalEnum;
2020
import org.apache.dubbo.common.serialize.model.person.FullAddress;
21+
import org.junit.After;
2122
import org.junit.Before;
2223
import org.junit.Test;
2324

@@ -41,6 +42,11 @@ public void setUp() {
4142
this.fstObjectOutput = new FstObjectOutput(byteArrayOutputStream);
4243
}
4344

45+
@After
46+
public void tearDown() throws IOException {
47+
new FstObjectInput(new ByteArrayInputStream(new byte[]{0}));
48+
}
49+
4450

4551
@Test
4652
public void testWriteBool() throws IOException {

0 commit comments

Comments
 (0)