From 737c0a507428c6f0ff0c1cfe61de63730363a0aa Mon Sep 17 00:00:00 2001 From: Yaron Sumel Date: Sat, 29 Jul 2017 21:13:54 +0300 Subject: [PATCH] tryLock comment --- zk/lock.go | 2 +- zk/lock_test.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/zk/lock.go b/zk/lock.go index d0a228a9..8b1692b9 100644 --- a/zk/lock.go +++ b/zk/lock.go @@ -14,7 +14,7 @@ var ( // ErrNotLocked is returned by Unlock when trying to release a lock that has not first be acquired. ErrNotLocked = errors.New("zk: not locked") // ErrTimeout is returned by Lock when trying to lock and timeout is reached before lock is acquired. - ErrTimeout = errors.New("zk: ErrTimeout") + ErrTimeout = errors.New("zk: acquire timeout") ) // Lock is a mutual exclusion lock. diff --git a/zk/lock_test.go b/zk/lock_test.go index a03a0bc7..aa61d7e6 100644 --- a/zk/lock_test.go +++ b/zk/lock_test.go @@ -33,7 +33,6 @@ func TestTryLock(t *testing.T) { } } - func TestLock(t *testing.T) { ts, err := StartTestCluster(1, nil, logWriter{t: t, p: "[ZKERR] "}) if err != nil {