Skip to content

Commit d2dc70f

Browse files
committed
removed the test
1 parent 04e9d5f commit d2dc70f

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

common/unsafe/src/test/java/org/apache/spark/unsafe/types/UTF8StringSuite.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import org.apache.spark.unsafe.memory.ByteArrayMemoryBlock;
3030
import org.apache.spark.unsafe.memory.MemoryBlock;
3131
import org.apache.spark.unsafe.memory.OnHeapMemoryBlock;
32-
import org.junit.Ignore;
3332
import org.junit.Test;
3433

3534
import static org.junit.Assert.*;
@@ -516,22 +515,6 @@ public void soundex() {
516515
assertEquals(fromString("世界千世").soundex(), fromString("世界千世"));
517516
}
518517

519-
@Ignore
520-
public void writeToOutputStreamUnderflow() throws IOException {
521-
// offset underflow is apparently supported?
522-
final ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
523-
final byte[] test = "01234567".getBytes(StandardCharsets.UTF_8);
524-
525-
for (int i = 1; i <= Platform.BYTE_ARRAY_OFFSET; ++i) {
526-
new UTF8String(
527-
new ByteArrayMemoryBlock(test, Platform.BYTE_ARRAY_OFFSET - i, test.length + i))
528-
.writeTo(outputStream);
529-
final ByteBuffer buffer = ByteBuffer.wrap(outputStream.toByteArray(), i, test.length);
530-
assertEquals("01234567", StandardCharsets.UTF_8.decode(buffer).toString());
531-
outputStream.reset();
532-
}
533-
}
534-
535518
@Test
536519
public void writeToOutputStreamSlice() throws IOException {
537520
final ByteArrayOutputStream outputStream = new ByteArrayOutputStream();

0 commit comments

Comments
 (0)