HDDS-646. TestChunkStreams.testErrorReadGroupInputStream fails. Contributed by Nanda kumar.
This commit is contained in:
parent
5c8e023ba3
commit
ddc9649328
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user