Open psturc opened 2 years ago
hey @psturc thanks for reporting this. Looks like it might be an edge-case bug that you've found. I'll dig into it and see how if I can push a fix out soon.
Hi @onsi did you get a chance to look into this (no pressure, just curious :)?
hey sorry, no. i've been super behind!
Hello! I know it is probably not a recommended practice to write tests with so many nested container nodes (and I'm currently rewriting specs in my test to be independent), but I thought it's worth to report this issue anyway.
This is the code
When I run the tests with env var
SKIP=true
(which results in all specs in container nodeDescribe level 2
to be skipped), theDeferCleanup, level 1
is called, which is expected (see the log2022/05/18 11:06:30 Executing DeferCleanup, level 1
)However if I uncomment the code for
Describe level 3
, and run the test with the same command, the cleanup (DeferCleanup, level 1
) doesn't happen.It happens only in case the specs in second container node (
Describe level 2
) are skipped. (If I run the tests withSKIP=false ginkgo
, the cleanup works as expected).