Commit 5a6e2561 authored by Mygod's avatar Mygod

Fix unit test

parent 2177abcd
...@@ -120,7 +120,7 @@ class KeyValuePair() { ...@@ -120,7 +120,7 @@ class KeyValuePair() {
val stream = ByteArrayOutputStream() val stream = ByteArrayOutputStream()
val intBuffer = ByteBuffer.allocate(4) val intBuffer = ByteBuffer.allocate(4)
for (v in value) { for (v in value) {
intBuffer.reset() intBuffer.rewind()
stream.write(intBuffer.putInt(v.length).array()) stream.write(intBuffer.putInt(v.length).array())
stream.write(v.toByteArray()) stream.write(v.toByteArray())
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment