package session import ( "testing" "time" ) func TestStartCleanupWorker(t *testing.T) { // Verify the worker starts and can be cancelled without panic. cancel := StartCleanupWorker(nil, 1*time.Millisecond) defer cancel() // Give it a moment to attempt one cleanup cycle. time.Sleep(50 * time.Millisecond) }