File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
core/src/test/java/org/apache/spark/shuffle/unsafe Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -253,11 +253,14 @@ public void doNotNeedToCallWriteBeforeUnsuccessfulStop() throws IOException {
253253 createWriter (false ).stop (false );
254254 }
255255
256- @ Test (expected =RuntimeException .class )
256+ class PandaException extends RuntimeException {
257+ }
258+
259+ @ Test (expected =PandaException .class )
257260 public void writeFailurePropegates () throws Exception {
258261 class BadRecords extends scala .collection .AbstractIterator <Product2 <Object , Object >> {
259262 @ Override public boolean hasNext () {
260- throw new RuntimeException ( "panda magic" );
263+ throw new PandaException ( );
261264 }
262265 @ Override public Product2 <Object , Object > next () {
263266 return null ;
You can’t perform that action at this time.
0 commit comments