cachetest

package
v1.0.0-beta.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL