Skip to content

Commit 8e17a26

Browse files
authored
Fix in types in test (#6557)
1 parent abe5d27 commit 8e17a26

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

utils/src/test/java/software/amazon/awssdk/utils/io/LengthAwareInputStreamTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,15 +293,15 @@ public void skip_thenReadByteUntilEof_doesNotThrowLengthMismatch() throws IOExce
293293
LengthAwareInputStream is = new LengthAwareInputStream(delegate, delegateLength);
294294

295295
int bytesToSkip = 8;
296-
int skippedBytes = 0;
296+
long skippedBytes = 0;
297297
while (skippedBytes != bytesToSkip) {
298298
long skipped = is.skip(1);
299299
if (skipped > 0) {
300300
skippedBytes += skipped;
301301
}
302302
}
303303

304-
int totalRead = 0;
304+
long totalRead = 0;
305305
while (is.read() != -1) {
306306
++totalRead;
307307
}
@@ -318,15 +318,15 @@ public void skip_thenReadArrayUntilEof_doesNotThrowLengthMismatch() throws IOExc
318318
LengthAwareInputStream is = new LengthAwareInputStream(delegate, delegateLength);
319319

320320
int bytesToSkip = 8;
321-
int skippedBytes = 0;
321+
long skippedBytes = 0;
322322
while (skippedBytes != bytesToSkip) {
323323
long skipped = is.skip(1);
324324
if (skipped > 0) {
325325
skippedBytes += skipped;
326326
}
327327
}
328328

329-
int totalRead = 0;
329+
long totalRead = 0;
330330
byte[] buff = new byte[8];
331331
int read;
332332

0 commit comments

Comments
 (0)