chesnokoff commented on code in PR #12304:
URL: https://github.com/apache/ignite/pull/12304#discussion_r2315690417


##########
modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/incremental/IncrementalSnapshotRestoreTest.java:
##########
@@ -623,9 +623,9 @@ public void testRestoreFromSecondAttempt() throws Exception 
{
 
         restartWithCleanPersistence();
 
-        GridTestUtils.assertThrowsAnyCause(log,
+        GridTestUtils.assertThrows(log,
             () -> grid(0).snapshot().restoreSnapshot(SNP, null, 1).get(),
-            IgniteException.class, "Force to fail snapshot restore.");

Review Comment:
   AssertThrowsAnyCause checks that exception cause has required class and 
message. The problem is that IgniteException has "Failed to execute job due to 
unexpected runtime exception...." message and the cause is RuntimeException 
with "Force to fail snapshot restore." message



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to