Skip to content

Commit 9f0d2f9

Browse files
author
Davies Liu
committed
fix tests
1 parent b2a90c6 commit 9f0d2f9

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

core/src/test/java/org/apache/spark/shuffle/sort/UnsafeShuffleWriterSuite.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ public DiskBlockObjectWriter answer(InvocationOnMock invocationOnMock) throws Th
130130
(Integer) args[3],
131131
new CompressStream(),
132132
false,
133-
(ShuffleWriteMetrics) args[4]
133+
(ShuffleWriteMetrics) args[4],
134+
(BlockId) args[0]
134135
);
135136
}
136137
});

core/src/test/java/org/apache/spark/unsafe/map/AbstractBytesToBytesMapSuite.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ public DiskBlockObjectWriter answer(InvocationOnMock invocationOnMock) throws Th
117117
(Integer) args[3],
118118
new CompressStream(),
119119
false,
120-
(ShuffleWriteMetrics) args[4]
120+
(ShuffleWriteMetrics) args[4],
121+
(BlockId) args[0]
121122
);
122123
}
123124
});

core/src/test/java/org/apache/spark/util/collection/unsafe/sort/UnsafeExternalSorterSuite.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ public DiskBlockObjectWriter answer(InvocationOnMock invocationOnMock) throws Th
130130
(Integer) args[3],
131131
new CompressStream(),
132132
false,
133-
(ShuffleWriteMetrics) args[4]
133+
(ShuffleWriteMetrics) args[4],
134+
(BlockId) args[0]
134135
);
135136
}
136137
});

core/src/test/scala/org/apache/spark/shuffle/sort/BypassMergeSortShuffleWriterSuite.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ class BypassMergeSortShuffleWriterSuite extends SparkFunSuite with BeforeAndAfte
8484
args(3).asInstanceOf[Int],
8585
compressStream = identity,
8686
syncWrites = false,
87-
args(4).asInstanceOf[ShuffleWriteMetrics]
87+
args(4).asInstanceOf[ShuffleWriteMetrics],
88+
blockId = args(0).asInstanceOf[BlockId]
8889
)
8990
}
9091
})

0 commit comments

Comments
 (0)