flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ches...@apache.org
Subject flink git commit: [hotfix] Improve exception message in TaskManagerTest#testRemotePartitionNotFound
Date Tue, 08 Mar 2016 15:14:44 GMT
Repository: flink
Updated Branches:
  refs/heads/master fe117afd3 -> 09ce3dcc3


[hotfix] Improve exception message in TaskManagerTest#testRemotePartitionNotFound

This closes #1658


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/09ce3dcc
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/09ce3dcc
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/09ce3dcc

Branch: refs/heads/master
Commit: 09ce3dcc3144484b088b6b29d7cca5061ea10937
Parents: fe117af
Author: zentol <chesnay@apache.org>
Authored: Tue Mar 8 16:13:07 2016 +0100
Committer: zentol <chesnay@apache.org>
Committed: Tue Mar 8 16:13:51 2016 +0100

----------------------------------------------------------------------
 .../org/apache/flink/runtime/taskmanager/TaskManagerTest.java   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/09ce3dcc/flink-runtime/src/test/java/org/apache/flink/runtime/taskmanager/TaskManagerTest.java
----------------------------------------------------------------------
diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/taskmanager/TaskManagerTest.java
b/flink-runtime/src/test/java/org/apache/flink/runtime/taskmanager/TaskManagerTest.java
index b9f4cbf..b80cb0e 100644
--- a/flink-runtime/src/test/java/org/apache/flink/runtime/taskmanager/TaskManagerTest.java
+++ b/flink-runtime/src/test/java/org/apache/flink/runtime/taskmanager/TaskManagerTest.java
@@ -917,8 +917,9 @@ public class TaskManagerTest extends TestLogger {
 
 						// The task should fail after repeated requests
 						assertEquals(ExecutionState.FAILED, msg.getExecutionState());
-						assertEquals(PartitionNotFoundException.class,
-								msg.getError(ClassLoader.getSystemClassLoader()).getClass());
+						Throwable t = msg.getError(ClassLoader.getSystemClassLoader());
+						assertEquals("Thrown exception was not a PartitionNotFoundException: " + t.getMessage(),

+							PartitionNotFoundException.class, t.getClass());
 					}
 				};
 			}


Mime
View raw message