Include the unexpected exception in the assertion
Project: http://git-wip-us.apache.org/repos/asf/curator/repo Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/71ed99d3 Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/71ed99d3 Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/71ed99d3 Branch: refs/heads/CURATOR-426 Commit: 71ed99d3d8a6c3b7f6a54b55b3b052daf927f8e0 Parents: d3aadde Author: randgalt <[email protected]> Authored: Fri Jul 21 11:12:38 2017 -0500 Committer: randgalt <[email protected]> Committed: Fri Jul 21 11:12:38 2017 -0500 ---------------------------------------------------------------------- .../apache/curator/x/async/migrations/TestMigrationManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/curator/blob/71ed99d3/curator-x-async/src/test/java/org/apache/curator/x/async/migrations/TestMigrationManager.java ---------------------------------------------------------------------- diff --git a/curator-x-async/src/test/java/org/apache/curator/x/async/migrations/TestMigrationManager.java b/curator-x-async/src/test/java/org/apache/curator/x/async/migrations/TestMigrationManager.java index 47d09ab..c781f60 100644 --- a/curator-x-async/src/test/java/org/apache/curator/x/async/migrations/TestMigrationManager.java +++ b/curator-x-async/src/test/java/org/apache/curator/x/async/migrations/TestMigrationManager.java @@ -337,7 +337,7 @@ public class TestMigrationManager extends CompletableBaseClassForTests } catch ( Throwable e ) { - Assert.assertTrue(Throwables.getRootCause(e) instanceof TimeoutException); + Assert.assertTrue(Throwables.getRootCause(e) instanceof TimeoutException, "Should throw TimeoutException, was: " + Throwables.getStackTraceAsString(Throwables.getRootCause(e))); } latch.countDown();
