From c463c3a26e59bdcf2213a49c6dd580a22df8d9b6 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 29 Mar 2012 16:21:07 -0700 Subject: [PATCH] fix pkg/server tests Change-Id: I66fa74f52035b3185ac6390d4e38244f4b29597f --- pkg/test/fakeindex.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/test/fakeindex.go b/pkg/test/fakeindex.go index 0baec7598..110dabd9e 100644 --- a/pkg/test/fakeindex.go +++ b/pkg/test/fakeindex.go @@ -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) { - if at.IsZero() { - panic("PathLookup with non zero at not supported") + if !at.IsZero() { + panic("PathLookup with non-zero 'at' time not supported") } fi.lk.Lock() defer fi.lk.Unlock()