Fix uk locale key parity, capture claim race and approval window reuse

This commit is contained in:
Viktor Liu
2026-09-22 19:21:28 +02:00
parent 31a27e575f
commit 5cf52e7e12
4 changed files with 47 additions and 34 deletions
+2 -10
View File
@@ -77,18 +77,10 @@ func TestClaimCapture_EvictionDoesNotHoldMutex(t *testing.T) {
t.Fatal("claimCapture blocked evicting a stalled capture")
}
locked := make(chan struct{})
go func() {
s.mutex.Lock()
s.mutex.Unlock()
close(locked)
}()
select {
case <-locked:
case <-time.After(5 * time.Second):
if !s.mutex.TryLock() {
t.Fatal("s.mutex still held after evicting a stalled capture")
}
s.mutex.Unlock()
select {
case <-sess.Done():