Skip to content

Commit bc1c22b

Browse files
committed
Really make sure we test skipping number of characters larger than the internal buffer.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1302651 13f79535-47bb-0310-9956-ffa450edef68
1 parent 2922088 commit bc1c22b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/java/org/apache/commons/codec/binary/Base64InputStreamTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ public void testReadOutOfBounds() throws Exception {
485485
public void testSkipBig() throws Throwable {
486486
InputStream ins = new ByteArrayInputStream(StringUtils.getBytesIso8859_1(ENCODED_B64));
487487
Base64InputStream b64stream = new Base64InputStream(ins);
488-
assertEquals(6, b64stream.skip(1024));
488+
assertEquals(6, b64stream.skip(Integer.MAX_VALUE));
489489
// End of stream reached
490490
assertEquals(-1, b64stream.read());
491491
assertEquals(-1, b64stream.read());

0 commit comments

Comments
 (0)