Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix functional subtest execution (#7083)
## What changed? <!-- Describe what has changed in this PR --> Fix functional subtest execution. Credits to @stephanos for the brilliant idea! ## Why? <!-- Tell your future self why have you made these changes --> Previously, if there is a assert failure (like `s.Equal`) in subtest, it failed entire test and stoped executing other subtests. Error message went to parent test as well, while subtest failed with wired message "subtest paniced". This is because we override `s.Assertions` in every test with `require.New` and it calls `FailNow` when condition is not meet. Same thing must to be done for every subtest. And every test helper which depends on `s.T()`. ## How did you test it? <!-- How have you verified this change? Tested locally? Added a unit test? Checked in staging env? --> Simulate failure of some sub tests and checked results. ## Potential risks <!-- Assuming the worst case, what can be broken when deploying this change to production? --> No risks. ## Documentation <!-- Have you made sure this change doesn't falsify anything currently stated in `docs/`? If significant new behavior is added, have you described that in `docs/`? --> No. ## Is hotfix candidate? <!-- Is this PR a hotfix candidate or does it require a notification to be sent to the broader community? (Yes/No) --> No.
- Loading branch information