Skip to content

Commit fb40f77

Browse files
committed
fix
1 parent e20d3a9 commit fb40f77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/amazonaws/encryptionsdk/internal/FrameEncryptionHandlerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public void testStreamTruncation() throws Exception {
165165
int startOffset = 100; // The data will start from this offset
166166
byte[] inputDataWithOffset = new byte[10_000];
167167
// the length of the actual data
168-
int dataLength = dataLength;
168+
int dataLength = inputDataWithOffset.length - startOffset;
169169
// copy some data, starting at the startOffset
170170
// so the first |startOffset| bytes are 0s
171171
System.arraycopy(

0 commit comments

Comments
 (0)