fix pkg/server tests

Change-Id: I66fa74f52035b3185ac6390d4e38244f4b29597f
This commit is contained in:
Brad Fitzpatrick 2012-03-29 16:21:07 -07:00
parent 8ee9eddf6f
commit c463c3a26e
1 changed files with 2 additions and 2 deletions

View File

@ -160,8 +160,8 @@ func (fi *FakeIndex) PathsLookup(signer, base *blobref.BlobRef, suffix string) (
} }
func (fi *FakeIndex) PathLookup(signer, base *blobref.BlobRef, suffix string, at time.Time) (*search.Path, error) { func (fi *FakeIndex) PathLookup(signer, base *blobref.BlobRef, suffix string, at time.Time) (*search.Path, error) {
if at.IsZero() { if !at.IsZero() {
panic("PathLookup with non zero at not supported") panic("PathLookup with non-zero 'at' time not supported")
} }
fi.lk.Lock() fi.lk.Lock()
defer fi.lk.Unlock() defer fi.lk.Unlock()