Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestThreeSimultaneousLocksForSameResource (0.6 sec)

  1. internal/dsync/dsync_test.go

    	time.Sleep(testDrwMutexRefreshCallTimeout * 2)
    
    	dm2nd.Unlock(t.Context())
    }
    
    // Test three locks for same resource, one succeeds, one fails (after timeout)
    func TestThreeSimultaneousLocksForSameResource(t *testing.T) {
    	dm1st := NewDRWMutex(ds, "aap")
    	dm2nd := NewDRWMutex(ds, "aap")
    	dm3rd := NewDRWMutex(ds, "aap")
    
    	dm1st.Lock(id, source)
    	started := time.Now()
    	var expect time.Duration
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 10.8K bytes
    - Viewed (0)
Back to top