mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-02 19:49:07 +02:00
Fix uk locale key parity, capture claim race and approval window reuse
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user