diff --git a/src/test/java/com/flowpowered/nbt/stream/EndianSwitchableStreamTest.java b/src/test/java/com/flowpowered/nbt/stream/EndianSwitchableStreamTest.java index a2a7e12..0befff7 100644 --- a/src/test/java/com/flowpowered/nbt/stream/EndianSwitchableStreamTest.java +++ b/src/test/java/com/flowpowered/nbt/stream/EndianSwitchableStreamTest.java @@ -44,6 +44,7 @@ public void testWriteLEUnsignedShort() throws IOException { EndianSwitchableOutputStream output = new EndianSwitchableOutputStream(rawOutput, ByteOrder.LITTLE_ENDIAN); output.writeShort(unsigned); output.writeChar(testChar); + output.flush(); EndianSwitchableInputStream input = new EndianSwitchableInputStream(new ByteArrayInputStream(rawOutput.toByteArray()), ByteOrder.LITTLE_ENDIAN); assertEquals(unsigned, input.readUnsignedShort());