Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestDualWriteLockAcquired (0.09 sec)

  1. internal/dsync/drwmutex_test.go

    		drwm2.Unlock(t.Context())
    	}
    	// fmt.Println("2nd write lock failed due to timeout")
    	return locked
    }
    
    func TestDualWriteLockAcquired(t *testing.T) {
    	locked := testDualWriteLock(t, 10*testDrwMutexAcquireTimeout)
    
    	expected := true
    	if locked != expected {
    		t.Errorf("TestDualWriteLockAcquired(): \nexpected %#v\ngot      %#v", expected, locked)
    	}
    }
    
    func TestDualWriteLockTimedOut(t *testing.T) {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  2. internal/lsync/lrwmutex_test.go

    		lrwm.Unlock()
    	} else {
    		t.Log("2nd write lock failed due to timeout")
    	}
    	return locked
    }
    
    func TestDualWriteLockAcquired(t *testing.T) {
    	locked := testDualWriteLock(t, 3*time.Second)
    
    	expected := true
    	if locked != expected {
    		t.Errorf("TestDualWriteLockAcquired(): \nexpected %#v\ngot      %#v", expected, locked)
    	}
    }
    
    func TestDualWriteLockTimedOut(t *testing.T) {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 7.8K bytes
    - Viewed (0)
Back to top