service/workspaces: acctests/sweepers return error when resource not found #15190
Labels
service/workspaces
Issues and PRs that pertain to the workspaces service.
technical-debt
Addresses areas of the codebase that need refactoring or redesign.
tests
PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Milestone
Affected AccTests:
Affected Sweepers
Expected Behavior
The acctests/sweepers should not return an error, since we are waiting for the absence of the resource.
Actual Behavior
The acctest/sweeper returns the error
workspace "ws-g7mcyy6c6" was not terminated: couldn't find resource (21 retries)
.How to Fix
When waiting for a resource to be removed,
WaitForState()
should have an emptyTarget
, and the state function should returnnil, "", nil
The text was updated successfully, but these errors were encountered: