HDDS-646. TestChunkStreams.testErrorReadGroupInputStream fails. Contributed by Nanda kumar.

This commit is contained in:
Arpit Agarwal 2018-10-12 15:06:42 -07:00
parent 5c8e023ba3
commit ddc9649328

View File

@ -226,7 +226,7 @@ public int read(byte[] b, int off, int len) throws IOException {
// read following 300 bytes, but only 200 left // read following 300 bytes, but only 200 left
len = groupInputStream.read(resBuf, 340, 260); len = groupInputStream.read(resBuf, 340, 260);
assertEquals(5, groupInputStream.getCurrentStreamIndex()); assertEquals(4, groupInputStream.getCurrentStreamIndex());
assertEquals(0, groupInputStream.getRemainingOfIndex(4)); assertEquals(0, groupInputStream.getRemainingOfIndex(4));
assertEquals(160, len); assertEquals(160, len);
assertEquals(dataString, new String(resBuf).substring(0, 500)); assertEquals(dataString, new String(resBuf).substring(0, 500));