spacelift_space
deletion fails in same run as deleting dependent resources
#516
Labels
question
Further information is requested
I am writing tests for a module which creates several
spacelift_space
containingspacelift_stack
. During the destroy phase, these tests will almost always fail with the following error:It seems like the provider is attempting to delete the Space too quickly for the API to catch up. From the error message you can see it has partially succeeded, and locally a second
terraform destroy
succeeds. Since this is happening in module testing, it means I have to clean it up by myself. I can't work around it either withtime_sleep
because it would create a cyclic dependency.Here's some reproduction code:
Here's the relevant part of the debug logs:
The text was updated successfully, but these errors were encountered: