Repository navigation
test: retry the teardown's deletes on CalDAV - #65
Merged
Merged
Conversation
tidy_up() deleted what a test stored in a borrowed collection in one try, so a DELETE that robur dropped failed the test's teardown. Those deletes now go through sweep() as well, which the CalDAV test module already overrides to retry. As in caldav's own test cleanup, a delete that finds nothing is taken as done and is not checked afterwards: a later run sweeps whatever stays. Deleting a collection the test made is not retried here; caldav's Calendar.delete() already retries where the server's hints call calendar deletion fragile. Prompts: > just do the retries [= the retries for the teardown's deletes on > robur, left out of the sweep change] > (on a review finding that teardown now passes when a delete finds > nothing) I don't think we should spend a lot of effort verifying > that the calendar disappeared during cleanup - unless the caldav > server hint says that deleting is fragile. Consider that the > teardown shouldn't take too much time, and that it may anyway be > needed to do cleanup on the start of the test (because the test may > have been interrupted without performing any teardown earlier). > Also, check that the cleanup mechanisms in the calendaring-client is > more or less in sync with the cleanup meachnisms (sic) in the caldav > library. Assisted-By: Claude Opus 5.5 Reviewed-by: Tobias Brox <tobias@redpill-linpro.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commit message:
Follows up #64.
🤖 Generated with Claude Code