Commit 2005582
authored
HDFS-16702. MiniDFSCluster should report cause of exception in assert error (#4680)
When the MiniDFSClsuter detects that an exception caused an exit, it should include that exception as the cause for the AssertionError that it throws. The current AssertError simply reports the message "Test resulted in an unexpected exit" and provides a stack trace to the location of the check for an exit exception. This patch adds the original exception as the cause of the AssertError.1 parent 6ca2d3f commit 2005582
1 file changed
Lines changed: 4 additions & 3 deletions
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2159 | 2159 | | |
2160 | 2160 | | |
2161 | 2161 | | |
2162 | | - | |
2163 | | - | |
| 2162 | + | |
| 2163 | + | |
2164 | 2164 | | |
2165 | | - | |
| 2165 | + | |
| 2166 | + | |
2166 | 2167 | | |
2167 | 2168 | | |
2168 | 2169 | | |
| |||
0 commit comments