File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
server/src/test/java/org/elasticsearch/common/io/stream Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -156,20 +156,6 @@ public void testSkipWithOverflow() {
156156 assertThrows (IllegalArgumentException .class , () -> s .skip (skipPosition ));
157157 }
158158
159- public void testSeekAndSkip () {
160- int byteArrayLength = randomIntBetween (0 , 100 );
161- byte [] byteArray = randomByteArrayOfLength (byteArrayLength );
162- stream .writeBytes (byteArray , 0 , byteArrayLength );
163-
164- int seekPosition = randomIntBetween (byteArrayLength , byteArrayLength + 100 );
165- stream .seek (seekPosition );
166- assertEquals (seekPosition , stream .size ());
167-
168- int skipLength = randomIntBetween (0 , 100 );
169- stream .skip (skipLength );
170- assertEquals (seekPosition + skipLength , stream .size ());
171- }
172-
173159 public void testCopyBytes () {
174160 int byteArrayLength = randomIntBetween (0 , 100 );
175161 byte [] byteArray = randomByteArrayOfLength (byteArrayLength );
You can’t perform that action at this time.
0 commit comments