Skip to content

Commit dc4d6dd

Browse files
committed
cleanup
1 parent b599618 commit dc4d6dd

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/test/java/io/fusionauth/http/BaseTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,6 @@ protected byte[] chunkEncode(byte[] bytes, int chunkSize, String chunkedExtensio
465465
out.write("\r\n".getBytes(StandardCharsets.UTF_8));
466466
}
467467

468-
469468
out.write(("0\r\n\r\n".getBytes(StandardCharsets.UTF_8)));
470469
return out.toByteArray();
471470
}

src/test/java/io/fusionauth/http/io/HTTPInputStreamTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ public void read_fixedLength_withPushback(String contentEncoding) throws Excepti
9292
request.setHeader(Headers.ContentEncoding, contentEncoding);
9393
request.setHeader(Headers.ContentLength, compressedLength + "");
9494

95-
// body length is 113, when compressed it is 68 (gzip) or 78 (deflate)
96-
// The number of bytes available is 129.
9795
byte[] bytes = out.toByteArray();
9896
assertReadWithPushback(bytes, content, contentLength, nextRequestBytes, request);
9997
}
@@ -120,7 +118,7 @@ private void assertReadWithPushback(byte[] bytes, String content, int contentLen
120118
int secondRead = httpInputStream.read(buffer);
121119
assertEquals(secondRead, -1);
122120

123-
// We have 16 bytes left over
121+
// Expect that we have the number of bytes left over we expect
124122
assertEquals(pushbackInputStream.getAvailableBufferedBytesRemaining(), pushedBackBytes.length);
125123

126124
// Next read should start at the next request

0 commit comments

Comments
 (0)