Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestSuccessfulLockRefresh (0.1 sec)

  1. internal/dsync/dsync_test.go

    	dm1.Lock(id, source)
    	dm2.Lock(id, source)
    	dm1.Unlock(context.Background())
    	dm2.Unlock(context.Background())
    }
    
    // Test refreshing lock - refresh should always return true
    func TestSuccessfulLockRefresh(t *testing.T) {
    	if testing.Short() {
    		t.Skip("skipping test in short mode.")
    	}
    
    	dm := NewDRWMutex(ds, "aap")
    	dm.refreshInterval = testDrwMutexRefreshInterval
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 19 14:35:19 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top