This repository has been archived by the owner on May 3, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Each test is supposed to clean up after itself, but sometimes we're either doing more cleanup than we should or not doing the right way: 1. Namespaced rollout blocks do not need to be cleaned up manually. Every test tears down the entire namespace, and with it all of its rollout blocks. Doing this manual clean up before the tear down is wasteful. 2. Global rollout blocks need to be cleaned up unconditionally. Instead of doing it after each point where things can error out, we can depend on `defer` to do it before the func exits, reliably.
- Loading branch information
1 parent
7a0b6e1
commit 1e02648
Showing
1 changed file
with
17 additions
and
102 deletions.
There are no files selected for viewing
This file contains 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