You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@curator.apache.org by ra...@apache.org on 2017/07/23 02:41:15 UTC

[07/23] curator git commit: Include the unexpected exception in the assertion

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/master
Commit: 71ed99d3d8a6c3b7f6a54b55b3b052daf927f8e0
Parents: d3aadde
Author: randgalt <ra...@apache.org>
Authored: Fri Jul 21 11:12:38 2017 -0500
Committer: randgalt <ra...@apache.org>
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();