Skip to content

Commit 59d500b

Browse files
committed
chore: Simplify tests
Signed-off-by: Javier Aliaga <[email protected]>
1 parent 5e0a8f6 commit 59d500b

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

client/src/test/java/io/dapr/durabletask/ErrorHandlingIntegrationTests.java

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -288,23 +288,7 @@ private FailureDetails retryOnFailuresCoreTest(
288288

289289
// Confirm the number of attempts
290290
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+
308292
return details;
309293
}
310294
}

0 commit comments

Comments
 (0)