container/stub: remove function call in handleExit

This gets inlined and does not cause problems usually but turns out -coverpkg uninlines it and breaks the recovery.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-09-04 19:39:12 +09:00
parent 19630a9593
commit 3920acf8c2
6 changed files with 57 additions and 35 deletions

View File

@@ -68,7 +68,7 @@ func (s *Stub[K]) New(f func(k K)) {
s.Helper()
defer s.wg.Done()
defer handleExit(s.TB, false)
defer handleExitNew(s.TB)
f(s.makeK(ds))
}()
}