Skip to content

Commit

Permalink
whoops, swap cases
Browse files Browse the repository at this point in the history
  • Loading branch information
squito committed Aug 20, 2015
1 parent 06c8ffa commit 200afdc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -830,9 +830,9 @@ class BlockManagerSuite extends SparkFunSuite with Matchers with BeforeAndAfterE
val notMapped = diskStoreNotMapped.getBytes(blockId).get.asInstanceOf[WrappedLargeByteBuffer]

// Not possible to do isInstanceOf due to visibility of HeapByteBuffer
assert(LargeByteBufferTestHelper.nioBuffers(mapped).get(0).getClass.getName
assert(LargeByteBufferTestHelper.nioBuffers(notMapped).get(0).getClass.getName
.endsWith("HeapByteBuffer"), "Expected HeapByteBuffer for un-mapped read")
assert(LargeByteBufferTestHelper.nioBuffers(notMapped).get(0).isInstanceOf[MappedByteBuffer],
assert(LargeByteBufferTestHelper.nioBuffers(mapped).get(0).isInstanceOf[MappedByteBuffer],
"Expected MappedByteBuffer for mapped read")

def arrayFromByteBuffer(in: LargeByteBuffer): Array[Byte] = {
Expand Down

0 comments on commit 200afdc

Please sign in to comment.