File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed
client/src/test/java/io/dapr/durabletask Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -288,23 +288,7 @@ private FailureDetails retryOnFailuresCoreTest(
288
288
289
289
// Confirm the number of attempts
290
290
assertEquals (maxNumberOfAttempts , actualAttemptCount .get ());
291
-
292
- // Make sure the surfaced exception is the last one. This is reflected in both the task ID and the
293
- // error message. Note that the final task ID depends on how many tasks get executed as part of the main
294
- // orchestration's definition. This includes any implicit timers created by a retry policy. Validating
295
- // the final task ID is useful to ensure that changes to retry policy implementations don't break backwards
296
- // compatibility due to an unexpected history change (this has happened before).
297
- String expectedExceptionMessage = "Error #" + maxNumberOfAttempts ;
298
- int expectedTaskId = expectedTaskCount - 1 ; // Task IDs are zero-indexed
299
- String taskName = isActivityPath .get () ? "BustedActivity" : "BustedSubOrchestrator" ;
300
- String expectedMessage = String .format (
301
- "Task '%s' (#%d) failed with an unhandled exception: %s" ,
302
- taskName ,
303
- expectedTaskId ,
304
- expectedExceptionMessage );
305
- assertEquals (expectedMessage , details .getErrorMessage ());
306
- assertEquals ("io.dapr.durabletask.TaskFailedException" , details .getErrorType ());
307
- assertNotNull (details .getStackTrace ());
291
+
308
292
return details ;
309
293
}
310
294
}
You can’t perform that action at this time.
0 commit comments