mirror of https://github.com/perkeep/perkeep.git
fix pkg/server tests
Change-Id: I66fa74f52035b3185ac6390d4e38244f4b29597f
This commit is contained in:
parent
8ee9eddf6f
commit
c463c3a26e
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue