Skip to content

Commit b950769

Browse files
author
Zhen
committed
Revert the changes to TLSSocketChannelFragmentation as other test is relying on static blobOfData
1 parent 7a1d05f commit b950769

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver/src/test/java/org/neo4j/driver/v1/integration/TLSSocketChannelFragmentation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,14 @@ public void shouldHandleFuzziness() throws Throwable
9595
for ( int dataBlobMagnitude = 1; dataBlobMagnitude < 16; dataBlobMagnitude += 2 )
9696
{
9797
blobOfDataSize = (int) Math.pow( 2, dataBlobMagnitude );
98+
blobOfData = blobOfData( blobOfDataSize );
9899

99100
for ( int frameSizeMagnitude = 1; frameSizeMagnitude < 16; frameSizeMagnitude += 2 )
100101
{
101102
networkFrameSize = (int) Math.pow( 2, frameSizeMagnitude );
102103
for ( int userBufferMagnitude = 1; userBufferMagnitude < 16; userBufferMagnitude += 2 )
103104
{
104105
userBufferSize = (int) Math.pow( 2, userBufferMagnitude );
105-
blobOfData = blobOfData( blobOfDataSize );
106106
testForBufferSizes( blobOfData, networkFrameSize, userBufferSize );
107107
}
108108
}
@@ -168,7 +168,7 @@ static byte[] blobOfData( int dataBlobSize )
168168
// fill the data blob with different values.
169169
for ( int i = 0; i < blobOfData.length; i++ )
170170
{
171-
blobOfData[i] = (byte) ((System.currentTimeMillis() + i) % 128);
171+
blobOfData[i] = (byte) (i % 128);
172172
}
173173

174174
return blobOfData;

0 commit comments

Comments
 (0)