Skip to content

Commit

Permalink
INSPECTIT-2502: Fixed ExtendedByteBufferOutputStreamTest zero write fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Senic authored and mariusoe committed Aug 1, 2017
1 parent 99413c4 commit 54809bd
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -102,7 +102,7 @@ public void writeLessThanBufferSize() throws IOException {
@Test(invocationCount = 5)
public void writeMoreThanBufferSize() throws IOException {
Random random = new Random();
int writeCount = random.nextInt(bufferSize * 5);
int writeCount = (bufferSize + 1) + random.nextInt(bufferSize * 5);
byte[] array = new byte[writeCount];
random.nextBytes(array);
int buffersUsed = writeCount / bufferSize;
Expand Down

0 comments on commit 54809bd

Please sign in to comment.