Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestUnlockShouldNotTimeout (0.15 sec)

  1. internal/dsync/dsync_test.go

    	wg.Wait()
    	if ctx.Err() == nil {
    		t.Fatal("Unexpected error", ctx.Err())
    	}
    
    	// Should be safe operation in all cases
    	dm.Unlock(t.Context())
    }
    
    // Test Unlock should not timeout
    func TestUnlockShouldNotTimeout(t *testing.T) {
    	if testing.Short() {
    		t.Skip("skipping test in short mode.")
    	}
    
    	dm := NewDRWMutex(ds, "aap")
    	dm.refreshInterval = testDrwMutexUnlockCallTimeout
    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