Documentation
¶
Overview ¶
Package cachetest provides cache lifecycle helpers for tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReleaseSessionAndWait ¶
func ReleaseSessionAndWait(t testing.TB, ctx context.Context, cache sessionReleaser, sessionID string)
ReleaseSessionAndWait releases a session and waits up to five seconds for its delegated cleanup before a test observes collection. Do not use it while a test intentionally keeps a session operation blocked: ReleaseSession alone allows those tests to observe the closing session before releasing the worker.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.