Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sanity: support embedding tests multiple time in Ginkgo
When using a sequence of DescribeSanity, RegisterTestsInGinkgo, DescribeSanity, RegisterTestsInGinkgo (i.e. embedding sanity tests in a Ginkgo suite more than once) the first test got registered multiple times, first by the initial RegisterTestsInGinkgo and again in the second RegisterTestsInGinkgo. Not only is this wrong, the locally bound variables also weren't initialized properly by the BeforeEach functions, which could lead to nil pointer accesses.
- Loading branch information